"Nathan Smith" <Na*********@discussions.microsoft.comschrieb::
>I have an app that has several background threads running, and I want to
use
a user-defined message to tell the main form that I want it to update a
object it created on startup.
I know this capability is in VC++ using the RegisterMessage and
PostMessage
functions, but is there anything like this in VB.net?
You do not even need 'RegisterWindowMessage' if you are sending messages
inside your application. Instead, you can define your own messages with
message codes in the range &H8000 through &HBFFF.
However, I am just curious why you are not using
'Control.Invoke'/'Control.BeginInvoke'/'Control.InvokeRequired' instead to
access the controls from within the threads.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>