Post Window Message

C

Curtis Kam

Hi,

I would like to know is there any PostMessage function availabe in VC#. Any
reference? Thanks.

Regards,
Cutris
 
C

Curtis Kam

Thanks.

Is there any simliar function call available in the .NET framework? Because
I want to communicate between two Windows Applications or Window Dialog.

Regards,
Curtis

Morten Wennevik said:
Hi Cutris,

There isn't any PostMessage method in C#, but you can easily use the Win32
version, you just need to add some code that forwards your calls to
win32.dll.
 
M

Morten Wennevik

I may have been unclear on this.
You can use the PostMessage method in Win32 (user32.dll)

Add something like this in your code

[DllImport("user32.dll", EntryPoint="PostMessage")]
public static extern int PostMessage(int WindowHandle, int Command, int Data, int ID);
 

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

Top