Home All Groups Group Topic Archive Search About
Author
5 Jul 2006 1:20 PM
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.

Author
5 Jul 2006 3:43 PM
Cor Ligthert [MVP]
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

Show quoteHide quote
"IdleBrain" <indianmostwan***@yahoo.com> schreef in bericht
news:1152105635.215008.3990@l70g2000cwa.googlegroups.com...
> 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.
>
Author
19 Jul 2006 3:06 PM
IdleBrain
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.