feeling > 27-04-17, 11:06 AM
tranthanhan1962 > 27-04-17, 11:44 AM
Private Sub Form_Load()
TabMenu.Visible = False
TabMenu.Value = 0
End Sub
Private Sub cbHeThong_Click()
TabMenu.Visible = True
TabMenu.Value = 0
End Sub
Private Sub cmdKhaiBao_Click()
TabMenu.Visible = True
TabMenu.Value = 1
End Sub
Private Sub cmdNhapLieu_Click()
TabMenu.Visible = True
TabMenu.Value = 2
End Sub
Private Sub cmdBaoCao_Click()
TabMenu.Visible = True
TabMenu.Value = 3
End Sub
Private Sub cmdTroGiup_Click()
TabMenu.Visible = True
TabMenu.Value = 4
End Sub
ongke0711 > 27-04-17, 12:09 PM
Sub PageDisplay(pageNo As Byte, TabName As TabControl)
Dim pageCount As Byte
Dim i As Integer
TabName.Pages(pageNo).Visible = True
TabName.Pages(pageNo).SetFocus
pageCount = TabName.Pages.Count
For i = pageNo + 1 To pageCount - 1
TabName.Pages(i).Visible = False
Next i
If pageNo > 0 Then
For i = pageNo - 1 To 0 Step -1
TabName.Pages(i).Visible = False
Next i
End If
End Sub
Private Sub cbHeThong_Click()
Call PageDisplay(0, Me.TabMenu)
End Sub
Private Sub cmdBaoCao_Click()
Call PageDisplay(3, Me.TabMenu)
End Sub
Private Sub cmdKhaiBao_Click()
Call PageDisplay(1, Me.TabMenu)
End Sub
Private Sub cmdNhapLieu_Click()
Call PageDisplay(2, Me.TabMenu)
End Sub
Private Sub cmdTroGiup_Click()
Call PageDisplay(4, Me.TabMenu)
End Sub
Private Sub Form_Load()
Call PageDisplay(0, Me.TabMenu)
End Sub
feeling > 27-04-17, 12:12 PM
tranthanhan1962 > 27-04-17, 01:14 PM
Private Sub cbHeThong_Click()
TabMenu.Pages(0).Visible = True
TabMenu.Pages(1).Visible = False
TabMenu.Pages(2).Visible = False
TabMenu.Pages(3).Visible = False
TabMenu.Pages(4).Visible = False
End Sub
Private Sub cbHeThong_Click()
P1.Visible = True
P2.Visible = False
P3.Visible = False
P4.Visible = False
P5.Visible = False
End Sub