1
votes

I created a new UI style like Visual Studios 2012 (the upper line with close button for example)

Now I try to close the application when I click on it (hovering works fine) but when I click on it the form closes, but the program doesn't stop debugging.

Is there any way I can make the program stop debugging?

Me.Close(), Application.Exit() and Application.ExitThread() does not work.

1
What happens if you wait some seconds and hit Break All in the debugger? - sloth
I don't have a debugger because I use windows form application. - Joshua Bakker
How does creating a windows form application prevents you from using a debugger? Didn't you ask how to make the program stop debugging? Maybe you should clarify your question. - sloth
If I use my codes the form closes, but Visual Studio doesn't stop debugging. - Joshua Bakker
Post a small sample code that reproduces the problem. - LarsTech

1 Answers

3
votes

Have a look in your Project Properties Menu. There is the option to choose when the program ends. Options will be like, "First Form Opened Closes", "Last Form Closes" ect.

It may be that you have opened another form and only Hidden it, not closed it. Hence it is still open and the application will not close.

Alternatively, just type the word "End" that will force the program to close

Regards

Joe