TabControl MouseHover Event : Help...

  • Thread starter Thread starter Deep Silent Ocean
  • Start date Start date
D

Deep Silent Ocean

Hi

How to implement MouseHover event in TabControl in WinForms...


I want to select the Tab depending on which the mouse is, so that user
does not have to click on Tab..


Thanks

Deep Ocean...
 
In the MouseMove event of the TabControl:

For Index As Int32 = 0 To MyTabControl.TabCount - 1
If MyTabControl.GetTabRect(Index).Contains(e.X,e.Y)
MyTabControl.SelectedIndex = Index
End If
Next
 
Back
Top