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

How to make the Close button lying at the right-top corner of form get the focus?

P: n/a
??
Nov 16 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
I want to use ESC to close the form, but it's nullity.i think that should be
have a function to make the Close button to get the focus, liking
SendMessage(...) function!
"John" <to*@sohu.com> 写入邮件 news:Oj**************@TK2MSFTNGP10.phx.gbl...
??

Nov 16 '05 #2

P: n/a
In our project, we use keyboard to control the system and the application
"John" <to*@sohu.com> 写入邮件 news:Oj**************@TK2MSFTNGP10.phx.gbl...
??

Nov 16 '05 #3

P: n/a
just capture the escape on the form and close it. You cannot give focus to
the window close button (the X in the upper right).
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John" <to*@sohu.com> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
I want to use ESC to close the form, but it's nullity.i think that should
be
have a function to make the Close button to get the focus, liking
SendMessage(...) function!
"John" <to*@sohu.com> 写入邮件
news:Oj**************@TK2MSFTNGP10.phx.gbl...
??


Nov 16 '05 #4

P: n/a
another question, when a button gets the focus, why the choice action is
click the SPACE, not the ENTER?
"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> 写入邮件
news:v9********************@comcast.com...
just capture the escape on the form and close it. You cannot give focus to
the window close button (the X in the upper right).
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John" <to*@sohu.com> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
I want to use ESC to close the form, but it's nullity.i think that should
be
have a function to make the Close button to get the focus, liking
SendMessage(...) function!
"John" <to*@sohu.com> 写入邮件
news:Oj**************@TK2MSFTNGP10.phx.gbl...
??



Nov 16 '05 #5

P: n/a
according to windows u/i guidelines (which have been published for over a
decade), space selects the current button, enter selects the default button
on the form.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John" <to*@sohu.com> wrote in message
news:eM*************@TK2MSFTNGP10.phx.gbl...
another question, when a button gets the focus, why the choice action is
click the SPACE, not the ENTER?
"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> 写入邮件
news:v9********************@comcast.com...
just capture the escape on the form and close it. You cannot give focus
to
the window close button (the X in the upper right).
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John" <to*@sohu.com> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
>I want to use ESC to close the form, but it's nullity.i think that
>should
>be
> have a function to make the Close button to get the focus, liking
> SendMessage(...) function!
> "John" <to*@sohu.com> 写入邮件
> news:Oj**************@TK2MSFTNGP10.phx.gbl...
>> ??
>>
>>
>
>



Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.