|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Enter-key to have tab-key functionalityHi,
I have an application written in vb (2003 dotnet 1.1) which requires a lot of user input, mostly numeric. Now I would like to jump from textbox-to- textbox when pressing the enter-key, just like using the tab-key. I found I have problems with just using .SelectNextControl, when for example the next control is (temporarily) invisible. Should I just override: ProcessCmdKey(ByRef msg As Windows.Forms.Message, ByVal keyData As Windows.Forms.Keys) Or is there a regular best-practise for this issue? Thanks for any suggestions/solutions in advance! Nano You may try this guys suggestion:
http://blogs.duncanmackenzie.net/duncanma/archive/2004/12/13/936.aspx Just an idea. "Melissa Nava" <melissa.n***@gmail.com> wrote in Thanks very much, that looks just perfect! I'll try that asap!news:1147128048.316884.271670@i39g2000cwa.googlegroups.com: > http://blogs.duncanmackenzie.net/duncanma/archive/2004/12/13/936.aspx Nano Not sure I understand. If the control is "temporairly invisible" then you
can't set the focus to the control. Am I missing something? -- Show quoteHide quoteDennis in Houston "Nano" wrote: > Hi, > > I have an application written in vb (2003 dotnet 1.1) which requires a lot > of user input, mostly numeric. Now I would like to jump from textbox-to- > textbox when pressing the enter-key, just like using the tab-key. > > I found I have problems with just using .SelectNextControl, when for > example the next control is (temporarily) invisible. > > Should I just override: > ProcessCmdKey(ByRef msg As Windows.Forms.Message, ByVal keyData As > Windows.Forms.Keys) > > Or is there a regular best-practise for this issue? > > Thanks for any suggestions/solutions in advance! > > Nano > =?Utf-8?B?RGVubmlz?= <Den***@discussions.microsoft.com> wrote in
news:987A99CE-2B7E-4A8F-811D-034F20ADAACD@microsoft.com: You are right, that's why I got an error when using SelectNextControl. > Not sure I understand. If the control is "temporairly invisible" then > you can't set the focus to the control. Am I missing something? Although the control is invisible, it may be still the next control (which can not be focused/selected when invisible). Nano
control array question for VB.Net 2005
File copy VB Exp 2005 Fat client - Server: Which technology? Thread Sync Queue Problem umanaged code - array error Outlook Add In is not shown for 1 user... Regular expression rejecting invalid files Standarddrucker mit .Net ermitteln licensing a third party control Option Strict On does not cause compilation error |
|||||||||||||||||||||||