Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Windows Messages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christoffer Sørensen - 02 Sep 2004 07:23 GMT
Hi,

I'm wondering if there are any equivalents of the Windows Messages (like
WM_USER) and the concept of message maps in .NET ?

I need to handle user defined messages.

To port from MFC to .NET it requires some infrastructure to handle this. It
should be a pure .NET solution, not some P/Invoke thing.

Regards,

Christoffer Sørensen
Wiktor Zychla - 02 Sep 2004 07:56 GMT
> I'm wondering if there are any equivalents of the Windows Messages (like
> WM_USER) and the concept of message maps in .NET ?
[quoted text clipped - 3 lines]
> To port from MFC to .NET it requires some infrastructure to handle this. It
> should be a pure .NET solution, not some P/Invoke thing.

in a form code you should override the WndProc method

...
protected override void WndProc(ref Message m)

{

   // handle any message here

  ...

   // default semantics

   base.WndProc (ref m);

}

Wiktor Zychla
Christoffer Sørensen - 02 Sep 2004 11:47 GMT
> in a form code you should override the WndProc method

<snip>

Thanks a lot!

Regards,

Christoffer
nicomp - 12 Mar 2006 23:06 GMT
Do you know how to receive messages from .Net IDE windows?  We need to see
messages sent to / from the output window, editor window. etc.

> > in a form code you should override the WndProc method
>
[quoted text clipped - 5 lines]
>
> Christoffer

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.