• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Need help with recursion error

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
Agent909
Asked:
Agent909
  • 2
1 Solution
 
sshah254Commented:
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
 
Agent909Author Commented:
I will try this now and then get back to you.
0
 
Agent909Author Commented:
I tried it, and the form loaded!  Thanks for answering my question so quickly.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now