Automatic move in forms

B

Brant

In one of my forms, im making a spot for ip addresses to be entered and
I want to have them in 4 blocks. 192 in one, 168 in two,and so on. What
I want to be able to happen is when I fill one box to the maximum size
of three, automatically tab to the next one so i can type 192168123321
and it get saved in the 4 appropriate boxes. How can I do this and was I
clear with my question?
Thanks in advance
 
K

Klatuu

create input masks for each of the text boxes for the required length
one = "000"
Two = "000"
Etc.

Then for each text box, set the Auto Tab property to true
 
B

Brant

ok now what i think i might want to do is auto tab when ever a . is
entered, that way if i type 192.168.1.2 it will automatically tab over
after 192, then after 168, then after 1, and after 2, so it would also
work with something like 12.12.333.2
thanks
 
K

Klatuu

That sounds reasonable. Why do you need to put it 4 different text boxes?
If you must :), then you may consider using the Change event of each textbox
to see if the last character entered was . or, you might want to use the
Keypress event, or you might want to go home, take a nap, the reconsider the
whole idea.
 
Top