Link to home
Start Free TrialLog in
Avatar of TheQ111798
TheQ111798

asked on

shameless sendmessage (?)

I have looked for examples in vb dealing with closing an app. window I have set as a child in a midi. I am doing this with sendmessage but the examples I have seen don't work

ex. :
RetVal = SendMessage(ChildhWnd, WM_CLOSE, WM_CLOSE, 0&)
RetVal = SendMessage(ChildhWnd, WM_SYSCOMMAND, SC_CLOSE, 0&)
Avatar of hddp666
hddp666

Why not use these to open and close the form?

frmChild.Show

Close frmChild
Avatar of TheQ111798

ASKER

The child is actually an application I am running in the midiform (not a form in my projectZ), so I only have a handle on it.
ASKER CERTIFIED SOLUTION
Avatar of kacklehorn
kacklehorn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial