Hi,
I am a new VB.NET programmer . I'm having a problem with forms.
I have a client application that has two forms. The first form has the login screen and the second is the main form.
The login validation is done over the internet. If the login is successful the second form is loaded and the first one is hidden:
form2.Show
Me.Hide
The login validation takes some time (not less than 2 seconds). I have a function that checks the login. This function is called when the user clicks on Enter Button.
To make the form responsive during the checking time, I create a new thread and pass it the address of this function.
Now the problem is: if inside this function I call form2.Show - Me.Hide the application disappears and becomes a background process.
Any Ideas?
Thanks
I am a new VB.NET programmer . I'm having a problem with forms.
I have a client application that has two forms. The first form has the login screen and the second is the main form.
The login validation is done over the internet. If the login is successful the second form is loaded and the first one is hidden:
form2.Show
Me.Hide
The login validation takes some time (not less than 2 seconds). I have a function that checks the login. This function is called when the user clicks on Enter Button.
To make the form responsive during the checking time, I create a new thread and pass it the address of this function.
Now the problem is: if inside this function I call form2.Show - Me.Hide the application disappears and becomes a background process.
Any Ideas?
Thanks