Closing a Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to know the Api that simulates closing the current form and fire all
the proper events
 
What do you mean with API? windows API? then you can just send WM_CLOSE
message to form's window using it handler.
 
Lorenzo,
i am not sure what kind of example you need, so please describe the whole
idea, what you want to achieve with this and then we can point you to
correct path
 
I went hunting and found what I was looking for. The API was
Call PostMessage(hWnd, WM_CLOSE, 0&, ByVal 0&). This did the trick.
Thx again for persuing my post, your response is appreciated.
 
Back
Top