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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide or Remove Currency Manager from TabControlAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

73389 May 5,2008 10:38 AM May 29,2008 05:51 PM Windows Forms 2
loading
Tags: GridControl
Alex Maldonado
Asked On May 5, 2008 10:38 AM

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


J.Nagarajan [Syncfusion]
Replied On May 23, 2008 02:26 PM

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


Alex Maldonado
Replied On May 29, 2008 05:51 PM

Thanks that work.
ps. I had to also add drawItemInfo.DrawBorders() for to make it look better.

-- Alex


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;