> I've been trying to figure out how LabView accomplishes this. No
> luck.
>
This ability isn't built into the LV numeric or string controls. You
have two options. If these controls are OCXes, they can be used in LV,
the same way they were in VB. The diagram programming will be similar
to what you did in VB, just using property nodes an invoke nodes instead
of property and invoke statements.
The second way to do this would be to put some event handling code with
the string. You get each key event, and you can accept, reject, or
modify it as you wish. For the ####-#### field, you catch the keys and
for each one, you verify it is 0-9, update the string and possibly set
the selection back and beep or something when they have a bad key. You
als
o need to determine which character they are replacing, and when it
is the fourth, you set the selection to the sixth, etc. This code won't
take too terribly long to write, and the key will be to write it once,
make a subVI that does the real work, and use the subVI for the
different input instances.
Greg McKaskle