Getting the Bounds of the Tab Buttons of a NTabControl


Author
Message
Angel Chorbadzhiev
Angel Chorbadzhiev
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
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.


Partho Sarathi
Partho Sarathi
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
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?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search