
Help! Need help with TextBox Cntrl
Quote:
> I'm just trying to get a return key to advance to the next TextBox
> or object.
> Even when I get close, I still get an annoying bell.
> Anyone have any advice?
My advice would be to stick to the Common User Access standard which
Windows abides by, and use Tab to move between controls and Enter to
activate the default command button, if any. What you are trying to do
is make Windows behave like a dumb terminal interface.
If you have good reasons for wanting to do this, you might want to do it
the way a colleague did. He defined a default command button which
would simulate pressing the Tab key by checking a form-wide variable set
by each control so as to determine which control had the focus before
the command button was pressed, and a Select Case statement to decide
which control to set the focus to. This doesn't implement Shift-Tab,
but does work reasonably well.