答案 0 :(得分:3)
Private Sub tab1_MouseClick(sender As Object, e As MouseEventArgs) Handles tab1.MouseClick
For i As Integer = 0 To Me.tab1.TabPages.Count - 1
If Me.tab1.GetTabRect(i).Contains(e.X, e.Y) Then
If e.Button = MouseButtons.Right Then
'Do some stuff here Me.ctxTabHeader.Show(e.X, e.Y)
End If
End If
Next
End Sub