M
Mountain Bikn' Guy
What is the C# equivalent to calling PostMessage() in Win32 in order for an
object to queue a message to itself?
Thanks
Mountain
object to queue a message to itself?
Thanks
Mountain
100 said:Ok, It seems like I was mislead by the post's subject.
In this case I'm not quite sure what you want to achive. Controls are the
parts of the framework that gives you the event driven nature of the
application.
IMHO only when the application works in event-driven fashion
posting messages to itself make sense.
However, you can always have a list
of references to delegate objects to queue your job items and when your
code finishes its current processing it can pull the next delegate form the
list and execute its method(s).
Posting messages (delegates) is simply
adding the delegate to the list - to the head or to the tail depending on
the priority you wants to give to the work item.