Question Exception on calling Form1 from LoginForm and LoginForm from Form1

Harris00

Member
Joined
Feb 27, 2009
Messages
9
Programming Experience
3-5
Hello

I have login form as start up form and i call Form1 after successful validation and in Form1, i have close button on click of Close i would like to reset username and password fields on loginform to null. If i add code in form1 below i get exception
Dim fmLogin As New LogInForm

An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll

Make sure you do not have an infinite loop or infinite recursion

I get above on LoginForm below statement
Dim fmMain As New Form1

How to take care of this problem

Regards
 
paste all of your code on form1 please
 
Back
Top