J.
J.Nagarajan
Syncfusion Team
May 23, 2008 06:26 PM UTC
Hi Alex ,
Thanks for your interest in Syncfusion products.
If your intention is to hide the dotted rectangle around the tab header, then you have to handle DrawItem event of the TabControlAdv. Please use the following code snippet.
this.tabControlAdv1.DrawItem += new DrawTabEventHandler(tabControlAdv1_DrawItem);
void tabControlAdv1_DrawItem(object sender, DrawTabEventArgs drawItemInfo)
{
// To indicate that the tab gets drawn as if it’s not focused (without the focus rect).
drawItemInfo.State &= ~DrawItemState.Focus;
// Then forward drawing to default drawing logic.
drawItemInfo.DrawBackground();
drawItemInfo.DrawInterior();
}
Please let me know if this helps.
Thanks ,
Nagaraj
AM
Alex Maldonado
May 29, 2008 09:51 PM UTC
Thanks that work.
ps. I had to also add drawItemInfo.DrawBorders() for to make it look better.
-- Alex