ok so i got this tab control that got several tabs on each tab i got the same fields textbox combobox and other stuff now if it was 6.0 i will just copy and paste from one to other then in the code i will just use the index to know what tab is. i will use it to control several ports with diferent setings so i will want to look like this old 6.0 code just EG for a button hit
CODE
Public ISL3810(constMax3810) As CISL3810 ' it is a class '
Private Sub cmbTest3810_Click(Index As Integer)
Dim intSaveSerialPort
intSaveSerialPort = 3810(Index).SerialPort
3810(Index).SerialPort = cmbComm3810(Index).ListIndex + 1
3810(Index).TestPrinter
3810(Index).SerialPort = intSaveSerialPort
End Sub
i this case when i hit button with index 1 the printer i use in this tab will load his settings

i think it is easy to do it like this when you got 10 + tabs
This post has been edited by NoBrain: 17 Jun, 2009 - 06:53 AM