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.
 
Thx Alex but I don't how to do that using using VBA. Pls give example code.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top