Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
GeneralC#: how to close form when esc key is pressed Pin
kssknov26-Dec-07 20:01
kssknov26-Dec-07 20:01 
GeneralRe: C#: how to close form when esc key is pressed Pin
Giorgi Dalakishvili26-Dec-07 20:18
mentorGiorgi Dalakishvili26-Dec-07 20:18 
You are hiding your form, not closing. If you want to close your form use this.Close()
Also, if you have controls on the form, make sure that your form is processing key press until they reach the controls

#region signature
my articles
#endregion

GeneralRe: C#: how to close form when esc key is pressed Pin
mav.northwind26-Dec-07 21:33
mav.northwind26-Dec-07 21:33 
GeneralRe: C#: how to close form when esc key is pressed Pin
kssknov26-Dec-07 23:19
kssknov26-Dec-07 23:19 
GeneralRe: C#: how to close form when esc key is pressed Pin
Giorgi Dalakishvili26-Dec-07 23:25
mentorGiorgi Dalakishvili26-Dec-07 23:25 
GeneralRe: C#: how to close form when esc key is pressed Pin
kssknov27-Dec-07 0:59
kssknov27-Dec-07 0:59 
GeneralRe: C#: how to close form when esc key is pressed Pin
mav.northwind27-Dec-07 1:31
mav.northwind27-Dec-07 1:31 
Generalfirst character to be upper case Pin
Sonia Gupta26-Dec-07 18:12
Sonia Gupta26-Dec-07 18:12 
GeneralRe: first character to be upper case Pin
srini vas26-Dec-07 18:50
srini vas26-Dec-07 18:50 
GeneralRe: first character to be upper case Pin
N a v a n e e t h26-Dec-07 19:01
N a v a n e e t h26-Dec-07 19:01 
GeneralRe: first character to be upper case Pin
Vikram A Punathambekar26-Dec-07 19:26
Vikram A Punathambekar26-Dec-07 19:26 
GeneralRe: first character to be upper case Pin
Paul Conrad27-Dec-07 6:27
professionalPaul Conrad27-Dec-07 6:27 
Generalsome questions, need fast reply Pin
Xmen Real 26-Dec-07 18:00
professional Xmen Real 26-Dec-07 18:00 
GeneralRe: some questions, need fast reply Pin
Sonia Gupta26-Dec-07 18:14
Sonia Gupta26-Dec-07 18:14 
GeneralRe: some questions, need fast reply Pin
Xmen Real 26-Dec-07 18:17
professional Xmen Real 26-Dec-07 18:17 
GeneralRe: some questions, need fast reply Pin
Sonia Gupta26-Dec-07 18:24
Sonia Gupta26-Dec-07 18:24 
GeneralRe: some questions, need fast reply Pin
Xmen Real 26-Dec-07 19:35
professional Xmen Real 26-Dec-07 19:35 
GeneralRe: some questions, need fast reply Pin
N a v a n e e t h26-Dec-07 19:15
N a v a n e e t h26-Dec-07 19:15 
GeneralRe: some questions, need fast reply Pin
Xmen Real 26-Dec-07 19:34
professional Xmen Real 26-Dec-07 19:34 
GeneralRe: some questions, need fast reply Pin
darkelv26-Dec-07 22:28
darkelv26-Dec-07 22:28 
GeneralRe: some questions, need fast reply Pin
Xmen Real 27-Dec-07 3:37
professional Xmen Real 27-Dec-07 3:37 
GeneralRe: some questions, need fast reply Pin
darkelv27-Dec-07 3:53
darkelv27-Dec-07 3:53 
GeneralRe: some questions, need fast reply Pin
V.26-Dec-07 22:51
professionalV.26-Dec-07 22:51 
GeneralRe: some questions, need fast reply Pin
Xmen Real 26-Dec-07 20:23
professional Xmen Real 26-Dec-07 20:23 
GeneralRe: some questions, need fast reply Pin
Paul Conrad27-Dec-07 6:40
professionalPaul Conrad27-Dec-07 6:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.