G
Guest
Call me a newbie... hopefully this will be an easy answer for you experienced coders. I have a simple tabcontrol with 3 tab pages. my problem is that I use the "selected_Index_changed" event, when I select a tab at runtime the panel that I associate with each tab page will not be visible. The only panel that I can get to display is the initial one I created. Each additional one will not be visible no matter what I try. Here is some of my code. Is there something that I need to do besides changing the panel.Visible property to TRUE? and changing changing the prior panel to FALSE
Private Sub TabControlTimeTracking_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControlTimeTracking.SelectedIndexChange
Select Case TabControlTimeTracking.SelectedInde
'Selecting the Add Asset page
Case
MsgBox("ADD"
PanelVIEWWeeklyTT.Visible = Fals
PanelADDTodayTT.Visible = Fals
PanelADDTTCODES.Visible = Tru
Case
MsgBox("VIEW"
PanelVIEWWeeklyTT.Visible = Tru
PanelADDTodayTT.Visible = Fals
PanelADDTTCODES.Visible = Fals
'tells if the label on panel is visibl
MsgBox(Label5.Visible
Case
MsgBox("Add today"
PanelVIEWWeeklyTT.Visible = Fals
PanelADDTodayTT.Visible = Fals
PanelADDTTCODES.Visible = Tru
End Selec
End Sub
Private Sub TabControlTimeTracking_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControlTimeTracking.SelectedIndexChange
Select Case TabControlTimeTracking.SelectedInde
'Selecting the Add Asset page
Case
MsgBox("ADD"
PanelVIEWWeeklyTT.Visible = Fals
PanelADDTodayTT.Visible = Fals
PanelADDTTCODES.Visible = Tru
Case
MsgBox("VIEW"
PanelVIEWWeeklyTT.Visible = Tru
PanelADDTodayTT.Visible = Fals
PanelADDTTCODES.Visible = Fals
'tells if the label on panel is visibl
MsgBox(Label5.Visible
Case
MsgBox("Add today"
PanelVIEWWeeklyTT.Visible = Fals
PanelADDTodayTT.Visible = Fals
PanelADDTTCODES.Visible = Tru
End Selec
End Sub