Enter-key to have tab-key functionality

N

Nano

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
 
G

Guest

Not sure I understand. If the control is "temporairly invisible" then you
can't set the focus to the control. Am I missing something?
 
N

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?

You are right, that's why I got an error when using SelectNextControl.
Although the control is invisible, it may be still the next control (which
can not be focused/selected when invisible).

Nano
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top