I am working an a simple project that required a vb.net login form. I added a login form that was preinstalled in visual studio, ex. Menu>Add existing item>login form. I am using visual studio desktop 2012 and I made the project for .NET 4.5. I then realized that my target framework was actually .NET 4.0, so I switched from 4.5 to 4.0 in the project properties menu. When I debugged the program and tried to click from the User textbox to the Password textbox the program froze, would not close and the controls don't respond either. Also when the login form shows and I press cancel the program freezes unstead of closing.

4 Years
Discussion Span
Last Post by HctiMitcH

Do you have code that fires on exit click?

If so: I would start there.
Step through the code and see where it stops.

If not: I would start with Cleaning/Rebuilding the Solution.
Build > Clean
Build > Rebuild

It has worked for me a few times.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.