Weird problem

  • Thread starter Thread starter IdleBrain
  • Start date Start date
I

IdleBrain

Hello all:
I am running a windows desktop application developed in VB.NET.
I have a stop button in the application which would stop the current
running process by raising an exception. Everything works fine except
that the application closes as soon as the the event handler subroutine
is completed by calling the closing event of the application.

I was looking at the call stack trace but could not find anything
useful. I'm not sure why that would happen.

Anyhelp in this regard is greatly appreciated!

Thanks in advance.
 
Idle,

How do you think that we can know what happens, if the button event is that
there should be done a power down, than your application will probably stop.

Therefore show us the code that does stop the proces.

Cor
 
Hello:
Thanks Cor.

I found out the problem though.
I had set the form's CancelButton to the stop button on the form which
was for some unknown reason was calling the form's closing event.
 
Back
Top