I would like to trap TextChanged events and validate them for correct values
from values coming in from a pen panel. If the values are valid, I want to
automatically tab to the next control.

But.... How do I raise the tab event in software?

Re: How do I simulate a tab event in code? by Eric

Eric
Thu Aug 05 13:39:20 CDT 2004

Have you looked at SendKeys? It feels like a hack sometimes but it's there
for a reason.

SendKeys.Send("{TAB}");

HTH;
Eric Cadwell
http://www.origincontrols.com



Re: How do I simulate a tab event in code? by Eric

Eric
Thu Aug 05 13:52:09 CDT 2004

There's also GetNextControl(...).
Might work out better.

HTH;
Eric Cadwell
http://www.origincontrols.com



Re: How do I simulate a tab event in code? by Andy

Andy
Fri Aug 06 10:34:03 CDT 2004

"Bill" <nfr@nospam.com> wrote in message
news:%23TxQYpweEHA.1036@TK2MSFTNGP10.phx.gbl...
> I would like to trap TextChanged events and validate them for correct
values
> from values coming in from a pen panel. If the values are valid, I want to
> automatically tab to the next control.
>
> But.... How do I raise the tab event in software?
>

You can set the SelectedIndex property of the TabControl as well.

Best Regards,

Andy