Nevron Forum

Getting the Bounds of the Tab Buttons of a NTabControl

https://www.nevron.com/Forum/Topic3205.aspx

By Partho Sarathi - Monday, March 8, 2010

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?
By Angel Chorbadzhiev - Tuesday, March 9, 2010

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.