hi, im having problem with my code
VB Code:
'TabStrip Private Sub ctlTabs1_TabClick(OldTab As Integer, NewTab As Integer) If OldTab <> NewTab Then StatusBar.Panels(1).Text = "BUSY" pause (300) Framer(OldTab).Visible = False Framer(NewTab).Visible = True Option1(1).Value = 1 StatusBar.Panels(1).Text = "READY" End If End Sub 'TabStrip Private Sub ctlTabs2_TabClick(OldTab As Integer, NewTab As Integer) StatusBar.Panels(1).Text = "BUSY" pause (300) Me.Caption = "Tab Changed from " & OldTab & " to " & NewTab Option1(2).Value = 1 StatusBar.Panels(1).Text = "READY" End Sub 'TabStrip Private Sub ctlTabs3_TabClick(OldTab As Integer, NewTab As Integer) StatusBar.Panels(1).Text = "BUSY" pause (300) Me.Caption = "Tab Changed from " & OldTab & " to " & NewTab Option1(3).Value = 1 StatusBar.Panels(1).Text = "READY" End Sub 'TabStrip Private Sub ctlTabs4_TabClick(OldTab As Integer, NewTab As Integer) StatusBar.Panels(1).Text = "BUSY" pause (300) Me.Caption = "Tab Changed from " & OldTab & " to " & NewTab Option1(4).Value = 1 StatusBar.Panels(1).Text = "READY" End Sub
i have 4 OptionButton, when i click the ctlTabs1 i wan't the Option1(1) is selected, then if i click cltTabs2 i wan't the Option1(2) will become selected.. and so on...
what is the problem with my code?
thanks..




Reply With Quote