Click [ok] on top wont close form when system hang RRS feed

  • Question

  • hi,

    Run into some network related issue and use Try_catch to end the program. But clicking [OK] on top wont close the form.

    Is there a way that surely close the form and How.



    Peace is the fruit of Love
    Wednesday, January 6, 2010 1:30 PM


  • In C++ and crash cases, use either CloseWindow or DestroyWindow.
    In C# try Form.Close or p/invoke previous two.

    If You'll find my answer satisfactory or helpful - mark it as answered or vote for it! Thank You.
    If You think You know better then me, why is Your code not working, then don't waste my time at this forum. Otherwise - do as I'm suggesting.

    I'm on MSDN just like MD House in the clinic. But I'm also a human which sometimes needs to see another doctor :)
    • Marked as answer by warrentang Monday, January 11, 2010 3:46 AM
    Wednesday, January 6, 2010 5:52 PM