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

Tab Indexes

P: n/a
vb.net 2005

im trying to move focus from one control to another using the tab index.
For varios reasons i don not want to use send keys or control.focus.
Nov 15 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Peter Newman" <Pe*********@discussions.microsoft.comschrieb:
im trying to move focus from one control to another using the tab index.
For varios reasons i don not want to use send keys or control.focus.
Well, calling the control's 'Focus' method is the preferred method. What
are the reasons you do not want to use this method?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 15 '06 #2

P: n/a
what i want to do is when the user hits the return/enter key they tab to the
next control. However i want to put this in a class so that all forms can
inherit it

"Herfried K. Wagner [MVP]" wrote:
"Peter Newman" <Pe*********@discussions.microsoft.comschrieb:
im trying to move focus from one control to another using the tab index.
For varios reasons i don not want to use send keys or control.focus.

Well, calling the control's 'Focus' method is the preferred method. What
are the reasons you do not want to use this method?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 15 '06 #3

P: n/a
Peter Newman wrote:
what i want to do is when the user hits the return/enter key they tab to the
next control. However i want to put this in a class so that all forms can
inherit it
Probably not best done in the Form, but in the Controls you place onto it.

Call [Control].SelectNextControl() in your override for OnKeyDown (or
OnKeyUp; I can never remember which until my program goes pop!)

Regards,
Phill W.
Nov 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.