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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top