Home All Groups Group Topic Archive Search About

overriding the OnKeyPress event

Author
27 Mar 2005 4:04 PM
Nigel Deans
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 =----

Author
27 Mar 2005 5:27 PM
Dennis
In the Keydown event, you should be able to intercept the return key and use
"SendKeys" to send the tab key message.

Show quoteHide quote
"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 =----
>
Author
27 Mar 2005 5:29 PM
Dennis
Another option is to override the ProcessCmdKey function if you are
subclassing your tab control.

Show quoteHide quote
"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 =----
>
Author
28 Mar 2005 4:32 PM
Nigel Deans
Thanks Dennis - the ProcessCmndKey worked out just fine.

Show quoteHide quote
"Dennis" <Den***@discussions.microsoft.com> wrote in message
news:355E8DF8-C109-45CE-944F-F48C7C187881@microsoft.com...
> 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
=----
> >
>




----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Author
27 Mar 2005 6:49 PM
Herfried K. Wagner [MVP]
"Nigel Deans" <nde***@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/>