About user-defined message

  • Thread starter Thread starter Justin Shen
  • Start date Start date
If you mean a message box, the syntax is:

MessageBox.Show(msg,title)

If that isn't what you want, give us some greater detail on what you are
trying to create.
 
* "Justin Shen said:
How can i use user-defined message in Windows Form? Any one can help?

Are you referring to defining your own Windows messages? You can use
p/invoke on 'RegisterWindowMessage' to register the message and then
listen for it in the form's 'WndProc'.
 
* "Justin Shen said:
do i need to override WndProc? can you introduce some article on this topic?

MSDN documentation for 'Control.WndProc' and 'RegisterWindowMessage'
should help.
 
Back
Top