|
■No91325 (wawa さん) に返信 > 他の場所の編集をするのが面倒なので、 > 直接、タブページのテキストを指定して開きたいのですが > どのようにすれば良いでしょうか?
Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Me.TabControl1.SelectedIndex = 1 End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click Me.TabControl1.SelectedTab = Me.TabPage2 End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click Me.TabControl1.SelectedTab = Me.TabControl1.TabPages(2) End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click Me.TabControl1.SelectedTab = Me.TabControl1.TabPages("TabPage4") End Sub End Class
|