?
Solved

Need help with recursion error

Posted on 2011-02-28
3
Medium Priority
?
225 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

770 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