Weird problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • IdleBrain

    #1

    Weird problem

    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.

  • Cor Ligthert [MVP]

    #2
    Re: Weird problem

    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

    "IdleBrain" <indianmostwant ed@yahoo.comsch reef in bericht
    news:1152105635 .215008.3990@l7 0g2000cwa.googl egroups.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.
    >

    Comment

    • IdleBrain

      #3
      Re: Weird problem

      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.

      Comment

      Working...