|
-
Mar 7th, 2007, 03:30 AM
#1
Thread Starter
Lively Member
escape key for a dailog result
hi
i created a dialog result
DialogResult Result = new DialogResult();
Result = MessageBox.Show("Are you sure you want to show the screen?", "", MessageBoxButtons.YesNo);
if (Result == DialogResult.Yes)
{
form2 f2=new form2();
f2.show();
}
if (Result == DialogResult.No)
{
MessageBox.Show " you are in form1";
}
After getting confirmation message if i click escape button i should get the Result with "NO"
how to capture DialogResult keydown event
Regards
Vinay Kumar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|