B
Benniit
Guest
Hello Folks,
I'm using Vb.net 2015 and I have two forms, namely frmLogin and frmMain. Through a button (with a click event) on the frmLogin with a sub procedure I make reference to all the controls on frmMain. e.g. frmMain.txtUsername.
Now, the problem is the moment I run the frmLogin form and click on the login button, the sub procedure (procLogin) is called and immediately it reaches the line frmMain.txtUserName.Text then the error "The form referred to itself during construction from a default instance which led to infinite recursion. Within the Form's constructor refer to the from using 'Me.' appears.
I have checked every where but to know avail. I do not really know where this error is coming from. Please help me out.
Thanks
Continue reading...
I'm using Vb.net 2015 and I have two forms, namely frmLogin and frmMain. Through a button (with a click event) on the frmLogin with a sub procedure I make reference to all the controls on frmMain. e.g. frmMain.txtUsername.
Now, the problem is the moment I run the frmLogin form and click on the login button, the sub procedure (procLogin) is called and immediately it reaches the line frmMain.txtUserName.Text then the error "The form referred to itself during construction from a default instance which led to infinite recursion. Within the Form's constructor refer to the from using 'Me.' appears.
I have checked every where but to know avail. I do not really know where this error is coming from. Please help me out.
Thanks
Continue reading...