move splitter control with Exception

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tiangy
    New Member
    • Mar 2010
    • 7

    move splitter control with Exception

    recently, I use the splitter control in my winform project. at the application running, it throws the exception(Syste m.Runtime.Inter opServices.SEHE xception) as moving the splitter control.

    I test it that second time or direct open the form which contains the splitter control, it's normal. In my application, it's opened as third time. the form which contains the splitter control is opened in the container both in test and application.

    i don.t know why? tell me how to do.... and thank you
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    where's the code.... where's the screenshot..... where's the explanation that you're using some com control......wh ere's everything that i require to help you

    Comment

    • tiangy
      New Member
      • Mar 2010
      • 7

      #3
      this morning, I find it throws error exception in the timer control's tick event. and it's normal in other place where opens the form which contains the splitter control, I think it's about the timer control

      Comment

      • ThatThatGuy
        Recognized Expert Contributor
        • Jul 2009
        • 453

        #4
        So where's the Again CODE Again???

        Comment

        • tiangy
          New Member
          • Mar 2010
          • 7

          #5
          <Code>
          static void main(){
          FormSplitter formSplitter = new FormSplitter();
          formSplitter.sh ow();
          }
          </code>

          it's correct.
          <code>
          private timer1_Tick(obj ect sender, System.EventArg s e){
          FormSplitter formSplitter = new FormSplitter();
          formSplitter.sh ow();
          }
          </code>
          the timer's Interval is 1000ms.
          it's error.

          i think the reason about the timer control. and looking forward to other answer......

          Comment

          • tiangy
            New Member
            • Mar 2010
            • 7

            #6
            i found it is not the question about the timer control, and now don't know what reason about this question. maybe it's about the container(Use the tabControl control about the third part plug-in), and looking forward to other answers......

            Comment

            • tiangy
              New Member
              • Mar 2010
              • 7

              #7
              at this time, i can't find out the reason about this question. and then I use another method to implement the same function, and thank you very much for help.I will explore this question in other times, not now.

              Comment

              • tiangy
                New Member
                • Mar 2010
                • 7

                #8
                the same question appares second time in this afternoon, I check out the code from begin to end, find the code contains the these codes (Application.En ableVisualStyle s();
                Application.DoE vent(); )
                put these disappeared, the application is running normal.

                Comment

                Working...