Profile Picture

Getting the Bounds of the Tab Buttons of a NTabControl

Posted By Partho Sarathi 14 Years Ago
Author
Message
Partho Sarathi
questionmark Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 9, Visits: 1
Is there a way to obtain the Bounds of a Tab Button (the one we click to switch to a tab page) for a NTabControl?

Angel Chorbadzhiev
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 139, Visits: 184

Hello Partho,

You can do that by getting the first Control in NTabControl.Controls collection, which is always NTabStrip, and then get the bounds of the NTabStrip NTabs:

NTabStrip tabStrip = nTabControl1.Controls[0] as NTabStrip;

if (tabStrip != null)

{

    Rectangle r = tabStrip.Tabs[0].Bounds;

}

 

Regards,

Angel.





Similar Topics


Reading This Topic