We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Hide or Remove Currency Manager from TabControlAdv

How do I remove or hide the dotted rectangle around the tab's header text. I guess thats call the Currency Manager?

Control: TabControlAdv
Syncfusion: 4.201.0.60

-- Alex


2 Replies

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


Loader.
Live Chat Icon For mobile
Up arrow icon