I have a Windows Forms project with a TabControl.
TabControl
Does anyone know how to change the SelectedTab when you hover over it with the pointer?>
SelectedTab
Try this:
private void tabControl1_MouseMove(object sender, MouseEventArgs e) { for (int i = 0; i < tabControl1.TabCount - 1; i++) { if (tabControl1.GetTabRect(i).Contains(e.X, e.Y)) { tabControl1.SelectedIndex = i; } } }