Surely this has got to be easy; I'm just not having any luck with it.
How would I get the TabPage
of a given TabControl
whose tab contains a given Point
? For example, if I'm handling the MouseUp
event and I want to know which tab the mouse was over when it was released.
I tried GetChildAtPoint
, but that seems to always return the first tab (unless I'm using it wrong).