Link to home
Start Free TrialLog in
Avatar of Natavia Finnie
Natavia FinnieFlag for United States of America

asked on

How do I get the tabPages to save in the correct order from low to high using getNextControl()

I am using the code below to save data from the controls to a text file. The controls are saving in the tabIndex order correctly. However, there are multiple tabPages and they seem to be saving in reverse order.

e.g.
   The controls from tabpage 10 saves in the indexed order then tabpage 9, 8, 7,....

I want the tabPages to save from low to high then the tab index...

 Dim cntrl As Control = Me
 Do
         cntrl = Me.GetNextControl(cntrl, True)
         If TypeOf cntrl Is TextBox Then
                 outputFile.wplWriteLine(cntrl.Name, Trim(cntrl.Text))
          End If
         ......other code here.....
 End Using
ASKER CERTIFIED SOLUTION
Avatar of Duy Pham
Duy Pham
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Natavia Finnie

ASKER

Awesome!!!!!!!


Thank you, thank you, thank you........