开发者

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 probl开发者_C百科em is that the page can move depending on whether other tab pages are present or not.

Is this possible?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜