Re: Send A Window Message
In some cases, API is the best solution, why don't you use it ?.
Or you can create a public procedure in main form, so you ca call it from MDI child.
Please tell me how you do it in C++.
Re: Send A Window Message
Thanks.. That was the sinple answer I was looking for.
I know I could use the API in basic -- But If I do that I might as well write the code in C. And I have to write this application in VB.
In C (MS Visual C++) I would define a user message, something like:
#define MSG_MY_MDI_MESSAGE WM_USER + 100
and define a function in the main window thread that is Mapped to this message.
Then send this message to the main window using the MFC call ::SendMessage
Re: Send A Window Message
You yourself said how to do it. thenwhy don't you use SendMessage or PostMessage in VB. or you don't know how to call APIs in VB???