Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need help with recursion error

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

609 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