PC Review


Reply
Thread Tools Rate Thread

closing form when pressing escape key

 
 
=?Utf-8?B?S2hhbGVk?=
Guest
Posts: n/a
 
      20th Sep 2007
Please, Any one help me in closing the form when the key escape is pressed
I tried applicaton on key but doesn"t close it
(I tried onkey ecape botton to open form and it works well. I don't know why
it did't work with closing form)
thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2hhcmxlcyBDaGlja2VyaW5n?=
Guest
Posts: n/a
 
      20th Sep 2007
Place a button on the form with the code "Unload Me" in it, the set the
"Cancel" property of the button to true. This will fire that button event if
the Esc key is pressed.

HTH

--
Charles Chickering

"A good example is twice the value of good advice."


"Khaled" wrote:

> Please, Any one help me in closing the form when the key escape is pressed
> I tried applicaton on key but doesn"t close it
> (I tried onkey ecape botton to open form and it works well. I don't know why
> it did't work with closing form)
> thanks

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
closing a form on escape Yoavo Microsoft C# .NET 4 18th Aug 2008 03:34 PM
Closing Form on pressing Enter or Return-key eoleo.ftp@googlemail.com Microsoft Excel Programming 2 11th Oct 2007 11:57 AM
DataGridView BindingList bug: InvalidOperationwhen pressing escape =?Utf-8?B?TWFyaXVzSQ==?= Microsoft Dot NET Framework Forms 0 12th Jul 2006 09:58 AM
Unloading / closing a form with the escape key =?Utf-8?B?QmV0dGVyZ2FpbnM=?= Microsoft Excel Programming 0 11th Jan 2006 06:41 PM
How do I cancel print when pressing escape and double cli doesn't =?Utf-8?B?Z2V0dGluZ2Fsb25naW55ZWFycw==?= Microsoft Word Document Management 1 3rd Oct 2004 05:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:44 AM.