Natavia Finnie
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(cn trl.Name, Trim(cntrl.Text))
End If
......other code here.....
End Using
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(cn
End If
......other code here.....
End Using
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, thank you, thank you........