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

overriding the OnKeyPress event

P: n/a
I need to get my tab control to treat the ENTER key like a TAB key... Is
there an easy way to do this?

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
In the Keydown event, you should be able to intercept the return key and use
"SendKeys" to send the tab key message.

"Nigel Deans" wrote:
I need to get my tab control to treat the ENTER key like a TAB key... Is
there an easy way to do this?

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Nov 21 '05 #2

P: n/a
Another option is to override the ProcessCmdKey function if you are
subclassing your tab control.

"Nigel Deans" wrote:
I need to get my tab control to treat the ENTER key like a TAB key... Is
there an easy way to do this?

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Nov 21 '05 #3

P: n/a
"Nigel Deans" <nd****@hotmail.com> schrieb:
I need to get my tab control to treat the ENTER key like a TAB key... Is
there an easy way to do this?


Enter Instead of Tab
<URL:http://blogs.duncanmackenzie.net/duncanma/archive/2004/12/13/936.aspx>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.