473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.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
Nov 21 '05 #1
2 947
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_@_chezjeff_._net(remove_underscores_and_this )> wrote in message
news:2D**********************************@microsof t.com...
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

Nov 21 '05 #2
Sure. I've uploaded the file to the following address:

http://www.chezjeff.net/file_archive...Puzzle2-vb.txt

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

Thanks again.

Xero
"Peter Proost" wrote:
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_@_chezjeff_._net(remove_underscores_and_this )> wrote in message
news:2D**********************************@microsof t.com...
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


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ramesh | last post by:
hi, My C# application displaying correctly in IE, But in netscape all input controls (text box, dblist, drop down list and etc.,) disappered. Only lables are displaying. The value inside the drop...
4
by: MrL8Knight | last post by:
Hello, I am trying to build a simple php form based shopping cart using a cookie with arrays. I need to use 1 cookie because each order will have over 20 items. With that said, I realize I need to...
4
by: JJGarcia | last post by:
Hi Everyone, I'll try to explain the process I'm following, I'm new to this so I'm triying the easy way first, probably the lasyest too! I created a new Project, drag in to it a SQLConnection,...
2
by: Yoshitha | last post by:
I've an windows application developed using vb.net( vs2003) and i'm testing this application on windows xp professional. my application is having only one form the size of the form is height :...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
2
by: naamala | last post by:
Hi, I need to change individual tab's background color in TabControl in windows form. I am able to change the Backgrond color of each tab in TabControl with changing the property...
2
by: =?Utf-8?B?aGVsZmk=?= | last post by:
Hi all, I have replied with my own questions to an older post entry but after a while I thought it's better to start a new thread based on the previous one. Perhaps with the new thread I will...
2
by: sweatha | last post by:
Hi friends This is sweatha, fresher MCA 2007 batch. Right now I am working in asp.net platform. My dillema is that I have created a registration form with the fields as username & password. And if...
1
by: phpfreak2007 | last post by:
Hi all.. I am displaying a form from thread. I set its startposition property to centreparent but its displayed on topleft corner.. I am displaying form using... error_msg.ShowDialog();...
1
by: raghudr | last post by:
Hi all, I am displaying a splash screen for which i have created a thread.Since my whole project is launched by windows service and that service will start automatically at the start of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.