Closing a messageBox with the ESCAPE key

G

Guest

Is there any way to do this that doesn't involve creating a form to be a messagebox
I'm re-writing a program that designed in VB and the users want to keep that functionality within the program
Why could you do this with VB6 but not C#

Many thanks to those that hel

jax
 
P

Paul E Collins

Is there any way to do this that doesn't
involve creating a form to be a
messagebox?
Why could you do this with VB6 but not
C#?

Message boxes work the same way in VB6 and C#.

The Escape key is equivalent to the Cancel button in the message box, if
there is one. If there isn't, it does nothing.

P.
 
G

Guest

Thanks for the response, I appreciate it
What you said may be true for applications on a desktop but for some reason it doesn't seem to work in the Compact Framework in my Pocket PC app
Infact I can't even get the escape key to register in any key down / key press event

Any more info

ja
 

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

Top