|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Tab Indexesvb.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. "Peter Newman" <PeterNew***@discussions.microsoft.com> schrieb: Well, calling the control's 'Focus' method is the preferred method. What > 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. 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/> 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 Show quoteHide quote "Herfried K. Wagner [MVP]" wrote: > "Peter Newman" <PeterNew***@discussions.microsoft.com> schrieb: > > 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/> > > Peter Newman wrote:
> what i want to do is when the user hits the return/enter key they tab to the Probably not best done in the Form, but in the Controls you place onto it.> next control. However i want to put this in a class so that all forms can > inherit it Call [Control].SelectNextControl() in your override for OnKeyDown (or OnKeyUp; I can never remember which until my program goes pop!) Regards, Phill W. |
|||||||||||||||||||||||