Thread: TENk
View Single Post
Old Feb 17th, 2006, 7:03 PM   #2
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 253
Rep Power: 4 melbolt is on a distinguished road
maybe you should try using the GetNextControl method.

according to MSDN this... "Retrieves the next control forward or back in the tab order of child controls."


'Get the first control in the tab order.
Dim ctl As Control = Me.GetNextControl(Me, True)

Do Until ctl Is Nothing
    'Use ctl here.

    'Get the next control in the tab order.
    ctl = Me.GetNextControl(ctl, True)
Loop

here's the link:
http://msdn.microsoft.com/library/de...ntroltopic.asp
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote