Membuat Menu TabStrip seperti contoh kode program dibawah ini :
Option Explicit
Private SelectedTab As Integer
Private Sub Form_Load()
Dim i As Integer
For i = 1 To ChoiceFrame.UBound
ChoiceFrame(i).Move _
ChoiceFrame(0).Left, _
ChoiceFrame(0).Top, _
ChoiceFrame(0).Width, _
ChoiceFrame(0).Height
ChoiceFrame(i).Visible = False
Next i
SelectedTab = 1
TabStrip1.SelectedItem = TabStrip1.Tabs(SelectedTab)
ChoiceFrame(SelectedTab - 1).Visible = True
End Sub
Private Sub TabStrip1_Click()
ChoiceFrame(SelectedTab - 1).Visible = False
SelectedTab = TabStrip1.SelectedItem.Index
ChoiceFrame(SelectedTab - 1).Visible = True
End Sub
gan, kalo bikin newtab pake commanbutton gimana?
ReplyDeletesource code aja boleh...
Buat new tab dari properties aja
DeleteCari (custom) klik bisa tambah tab sebanyak banyaknya di sana.