Řešení v VB.net:
Do projektu si přidej tuto třídu a proveď build aplikace:
V ToolBoxu budeš mít další ovládací prvek "TablessControl", který si dej na formulář. Přepínat mezi záložkami můžeš třeba takto:Imports System
Imports System.Windows.Forms
Public Class TablessControl
Inherits System.Windows.Forms.TabControl
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
If (m.Msg = Convert.ToInt32("0x1328", 16) And Not DesignMode) Then
m.Result = CType(1, IntPtr)
Else
MyBase.WndProc(m)
End If
End Sub
End Class
Private Sub btn1_Click(sender As Object, e As EventArgs) Handles btn1.Click
TablessControl1.SelectedIndex += 1
End Sub
Private Sub btn2_Click(sender As Object, e As EventArgs) Handles btn2.Click
If Not TablessControl1.SelectedIndex = 0 Then
TablessControl1.SelectedIndex -= 1
End If
End Sub