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.ShowDialog()
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.StackOverflowException 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.ShowDialog()
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
http://www.chezjeff.net
My personal web portal