G
Guest
When porting the Win32/MFC code to C#, I do not know how to deal with those
user defined windows messages. I just cannot cannot find an equivalent thing
in C#. Those messsages are so convenient in C/C++, especially when a thread
needs to inform the main GUI thread something, then continue its tasks:
ThreadFunc()
{
Doing something...
SendMessage(WM_USER+123,....);
Continue doing things....
}
What's the .NET way to accomplish this?
user defined windows messages. I just cannot cannot find an equivalent thing
in C#. Those messsages are so convenient in C/C++, especially when a thread
needs to inform the main GUI thread something, then continue its tasks:
ThreadFunc()
{
Doing something...
SendMessage(WM_USER+123,....);
Continue doing things....
}
What's the .NET way to accomplish this?