Closing a Form

L

Lorenzo

I need to know the Api that simulates closing the current form and fire all
the proper events
 
A

Alex Dybenko

What do you mean with API? windows API? then you can just send WM_CLOSE
message to form's window using it handler.
 
A

Alex Dybenko

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
 
L

Lorenzo

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.
 
Top