473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Closing a messageBox with the ESCAPE key

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
2 5699
> 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ron L | last post by:
I have an MDI application with a number of child windows. In each child window I am catching the Closing event and having the child window decide if it should set cancel to true. The intent here...
2
by: Jax | last post by:
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...
4
by: Amalorpavanathan Y \(Amal\) | last post by:
Hi All, In Winform Application, MDI form is having Save button. When i close the application, it will ask Save Changes? YES or NO or CANCEL. after i select CANCEL button, i have set e.Cancel =...
5
by: Oenone | last post by:
I have a VB.NET form which I'm displaying modally using the ShowDialog() method. Within the form is a Cancel button, and I've set this button into the Form's CancelButton property so that...
11
by: Dursun | last post by:
I need to make sure that the user cannot close (using "X") the form before saving the data on it. Which form event should I write the control code in? Thank you, -Delen
4
by: RSH | last post by:
I am trying to figure out how I can trap the Closing Event that occurs when a user attempts to close the window by clicking on the red"X". I tried this code which I found online but nothing...
3
by: Amy | last post by:
Hi, I'm using vs 2005 to develop a mobile application. I have tried to use a closing event to pop up a messagebox before close the form. It seems that the form is hided. And I found out that the...
10
by: John Kraft | last post by:
Hello all, I'm experiencing some, imo, strange behavior with the StreamReader object I am using in the code below. Summary is that I am downloading a file from a website and saving it to disk...
4
by: Yoavo | last post by:
Hi, I want to close my form when the user presses the Escape key. I tried to catch the event KeyPress of the form but the program do not go through this code. I tried to catch the KeyPress event...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.