About user-defined message

  • Thread starter Thread starter Justin Shen
  • Start date Start date
J

Justin Shen

How can i use user-defined message in Windows Form? Any one can help?
 
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'.
 
do i need to override WndProc? can you introduce some article on this topic?
 
* "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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top