Simon
Simon

Reputation: 6152

Is it possible to get the position of a specific tab in a tab control?

I'm trying to get the .Left property of a specific tab page in a tab control (based on the header), the .Left and .Right properties seem to return the position of the tab control itself, not the specific page. I want to align a label with the tab page header, the problem is that the page can move depending on whether other tab pages are present or not.

Is this possible?

Upvotes: 1

Views: 293

Answers (1)

Matt Breckon
Matt Breckon

Reputation: 3374

EDIT: It is possible - Use GetTabRect(x) which returns a rectangle representing the tab's rectangle.

Upvotes: 2

Related Questions