I would like to create an autoexit of a textbox when the number of character
entered is equal to the maximum length.
Is there a way I can programmatically add a Tab key into my own form?
The next field that I need to goto may or may not be a readonly field,
depending what kind of transaction the person tries to enter.

Signature
Arne Garvander
Certified Geek
Professional Data Dude
RobinS - 04 Mar 2008 01:47 GMT
You could use a masked textbox instead. It has a property you can set to
make it autotab after the user has hit filled the field.
RobinS.
GoldMail, Inc.
--------------------------------
>I would like to create an autoexit of a textbox when the number of
>character
> entered is equal to the maximum length.
> Is there a way I can programmatically add a Tab key into my own form?
> The next field that I need to goto may or may not be a readonly field,
> depending what kind of transaction the person tries to enter.
Claes Bergefall - 04 Mar 2008 09:38 GMT
You could try the Control.GetNextControl method to find out what the next
control in the tab order is and then set focus to that.
/claes
>I would like to create an autoexit of a textbox when the number of
>character
> entered is equal to the maximum length.
> Is there a way I can programmatically add a Tab key into my own form?
> The next field that I need to goto may or may not be a readonly field,
> depending what kind of transaction the person tries to enter.
HelloWorld - 04 Mar 2008 11:09 GMT
Also, there is SendKeys.Send method to send key strokes directly as per
coding logic...
>I would like to create an autoexit of a textbox when the number of
>character
> entered is equal to the maximum length.
> Is there a way I can programmatically add a Tab key into my own form?
> The next field that I need to goto may or may not be a readonly field,
> depending what kind of transaction the person tries to enter.