Simulate User use of Tab-Key?

Dinosaur

Member
Joined
Oct 30, 2007
Messages
11
Programming Experience
10+
I have an array of Text Boxes. For some Text Box Events, I want to simulate the effect of the user using the Tab-Key.

The above seems so simple, but nothing in the manuals I have tells me how to do it.

I could use a Select statement & Set Focus to the next Text Box, but the array has almost Text Boxes, making that idea a bit clumsy.

Control Arrays were so much easier in VB 6.00
 
You have the reference to the Textbox control in 'sender' parameter of the event. use Me.SelectNextControl method to select the next control in tab order starting from given Textbox.
 
John H: Thanx.

I am struggling up the learning curve for VB.net & can use all the advice I can get.

I was able to hack VB 6.00 easily, but am having problems with net.
 
Back
Top