Problem displaying a new form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Xero

    Problem displaying a new form

    I want to display a new form (named as launchPuzzle2) to the user and I use
    the following code : Dim nextStep As New launchPuzzle2

    In an event handler where I want the window to appear, I write the following
    code : nextStep.ShowDi alog()

    When I place the former code in the declaration part of the program and
    start the program, Visual Studio seems to have entered debugging mode but the
    program window never shows up. After a while a Just-in-Time debugging window
    appears, telling me that a System.StackOve rflowException was encountered and
    prompted me to choose a program to debug the program.

    Then I move that code to the line just before the latter line of code
    appears and start the program again. So it becomes:

    Dim nextStep As New launchPuzzle2
    nextStep.ShowDi alog()

    This time the program window loads. Yet when I have reached the event
    handler where the above code is located, the program stopped responding. Even
    the Stop Debugging button in VS does not work - I have to use Task Manager to
    terminate the program.

    How can I fix this? Thanks.

    --
    Xero


    My personal web portal
  • Peter Proost

    #2
    Re: Problem displaying a new form

    There's probably something wrong in your launchPuzzle2 constructor/code
    because the program crashes when you try to load the launchPuzzle2 form, so
    maybe you could post some code.

    Greetz Peter

    "Xero" <jeff_@_chezjef f_._net(remove_ underscores_and _this)> wrote in message
    news:2DFCAAEB-9B48-4F9C-AEB9-6E48F66C7A4F@mi crosoft.com...[color=blue]
    > I want to display a new form (named as launchPuzzle2) to the user and I[/color]
    use[color=blue]
    > the following code : Dim nextStep As New launchPuzzle2
    >
    > In an event handler where I want the window to appear, I write the[/color]
    following[color=blue]
    > code : nextStep.ShowDi alog()
    >
    > When I place the former code in the declaration part of the program and
    > start the program, Visual Studio seems to have entered debugging mode but[/color]
    the[color=blue]
    > program window never shows up. After a while a Just-in-Time debugging[/color]
    window[color=blue]
    > appears, telling me that a System.StackOve rflowException was encountered[/color]
    and[color=blue]
    > prompted me to choose a program to debug the program.
    >
    > Then I move that code to the line just before the latter line of code
    > appears and start the program again. So it becomes:
    >
    > Dim nextStep As New launchPuzzle2
    > nextStep.ShowDi alog()
    >
    > This time the program window loads. Yet when I have reached the event
    > handler where the above code is located, the program stopped responding.[/color]
    Even[color=blue]
    > the Stop Debugging button in VS does not work - I have to use Task Manager[/color]
    to[color=blue]
    > terminate the program.
    >
    > How can I fix this? Thanks.
    >
    > --
    > Xero
    >
    > http://www.chezjeff.net
    > My personal web portal[/color]


    Comment

    • Xero

      #3
      Re: Problem displaying a new form

      Sure. I've uploaded the file to the following address:



      This txt file is about 300k. (Pretty large for a text file ... it has almost
      ten thousand lines ...)

      Thanks again.

      Xero
      "Peter Proost" wrote:
      [color=blue]
      > There's probably something wrong in your launchPuzzle2 constructor/code
      > because the program crashes when you try to load the launchPuzzle2 form, so
      > maybe you could post some code.
      >
      > Greetz Peter
      >
      > "Xero" <jeff_@_chezjef f_._net(remove_ underscores_and _this)> wrote in message
      > news:2DFCAAEB-9B48-4F9C-AEB9-6E48F66C7A4F@mi crosoft.com...[color=green]
      > > I want to display a new form (named as launchPuzzle2) to the user and I[/color]
      > use[color=green]
      > > the following code : Dim nextStep As New launchPuzzle2
      > >
      > > In an event handler where I want the window to appear, I write the[/color]
      > following[color=green]
      > > code : nextStep.ShowDi alog()
      > >
      > > When I place the former code in the declaration part of the program and
      > > start the program, Visual Studio seems to have entered debugging mode but[/color]
      > the[color=green]
      > > program window never shows up. After a while a Just-in-Time debugging[/color]
      > window[color=green]
      > > appears, telling me that a System.StackOve rflowException was encountered[/color]
      > and[color=green]
      > > prompted me to choose a program to debug the program.
      > >
      > > Then I move that code to the line just before the latter line of code
      > > appears and start the program again. So it becomes:
      > >
      > > Dim nextStep As New launchPuzzle2
      > > nextStep.ShowDi alog()
      > >
      > > This time the program window loads. Yet when I have reached the event
      > > handler where the above code is located, the program stopped responding.[/color]
      > Even[color=green]
      > > the Stop Debugging button in VS does not work - I have to use Task Manager[/color]
      > to[color=green]
      > > terminate the program.
      > >
      > > How can I fix this? Thanks.
      > >
      > > --
      > > Xero
      > >
      > > http://www.chezjeff.net
      > > My personal web portal[/color]
      >
      >
      >[/color]

      Comment

      Working...