Solved

Need help with recursion error

Posted on 2011-02-28
3
224 Views
Last Modified: 2012-05-11
Everything was going along fine while developing my software, until I got the following error when I selected and called from the main menu:  frmSetup.ShowDialog.

The error I get is:

The form referred to itself during construction from a default instance, which led to infinite recursion.

I removed everything in the frmSetup_Load event, and still get this error.  Is my form toast, or is there a way to fix this?

Thanks.
0
Comment
Question by:Agent909
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
sshah254 earned 500 total points
ID: 35003157
Copy paste all code from the form to notepad.

Delete all code and then open the form.

Do you still get the error?

If not, insert the code back in one block at a time ... and checking it at every stage.

Ss
0
 
LVL 1

Author Comment

by:Agent909
ID: 35003173
I will try this now and then get back to you.
0
 
LVL 1

Author Closing Comment

by:Agent909
ID: 35003195
I tried it, and the form loaded!  Thanks for answering my question so quickly.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question