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.
Last edited by VBDT; Mar 31st, 2007 at 05:18 PM.
Rating is a way of saying thank you. Don't forget to rate always!
I'm having exactly the same problem. It has just randomly started! I just placed a textbox on a form and when i tried to type into it the message keeps coming up!
I'm having exactly the same problem. It has just randomly started! I just placed a textbox on a form and when i tried to type into it the message keeps coming up!
I hope someone can suggest a reason.
Yes this is very weird problem. Here I tried it in a new test project where I have two forms only and the form2 is shown as Dialog in the form1 “Shown” event. The form2 has a button on it and in the button’s click event I have Me.Close line. But when I hit the enter key when the button has focus, the message comes up. There is no other code except in the attached image code and form2 button click event where I only have Me.Close. I don’t remember anything like this I came cross. I don’t understand!
Last edited by VBDT; Mar 31st, 2007 at 07:53 PM.
Rating is a way of saying thank you. Don't forget to rate always!
I dont know if this 'fixes' your problem or just ignores it. But try this:
Debug menu -> Exceptions... -> Managed Debugging Assistants -> uncheck LoaderLock
I dont know if this 'fixes' your problem or just ignores it. But try this:
Debug menu -> Exceptions... -> Managed Debugging Assistants -> uncheck LoaderLock
Firstly, thanks Atheist for the input. I tried it with uncheck LoaderLock and it didn’t throw the message but the LoaderLock is checked by default and I really want to know if this is a normal behavior or not. It can’t be my code because I tried it in a new project where I have few lines and the problem is there still.
Yes I had read the article but I didn’t see any fixes it suggests, maybe it is just me!
Rating is a way of saying thank you. Don't forget to rate always!
It is too bed that I can’t give you rep, I need spread some reputation. But I’ll come back to this. Thank you so much Atheist for the help! I couldn’t imagine that iTunes can be some pain after pleasure.
Rating is a way of saying thank you. Don't forget to rate always!