Solved

Need help with recursion error

Posted on 2011-02-28
3
218 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now