Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft C# .NET
PostMessage/PeekMessage and interop
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Nicholas Paldino [.NET/C# MVP], post: 10325235"] I have to ask why you are using this mechanism? There are many other notification mechanisms in the framework other than this which are much cleaner. If I had to guess, I would say that you are doing work on another thread and trying to notify the main window when some unit of work is done. In this case, you should call the Invoke method on the main window, passing a delegate to be executed on the thread that created the UI. The only reason I can see to use this kind of code would be if you have to send a message to another window in a different process which was developed using unmanaged code. However, I doubt that is the case because of your declaration of PeekMessage, which indicates you have managed code looking for the message. [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft C# .NET
PostMessage/PeekMessage and interop
Top