Hi everyone, I have a little problem and would be thankful for any help. The project I am working on is spouse to start in the system tray so the main form is invisible. I achieve this by declaring Sub New method and setting the main form’s “WindowsState” property to minimize and the “ShowInTaskbar” property to False after the “InitializeComponent” line. When the application starts it pops up the Login dialog form and asks the user to enter the username and password.
Now the problem:
After the user enters the username and password and hits the enter key it throws an exception (see the image attached). I should point that if the user clicks on the OK button the exception is not thrown, only when he hits the enter key. And this is only happening in debug mode.
Can anyone tell me why is this exception thrown and what should I do to fix this.
Thanks for any input.




Reply With Quote