By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,495 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,495 IT Pros & Developers. It's quick & easy.

Closing a messageBox with the ESCAPE key

P: n/a
Jax
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> 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.
Nov 16 '05 #2

P: n/a
Jax
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

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.