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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Drawing Gradient Tabs with Rounded Corners

Thread ID:





71591 Feb 6,2008 08:32 PM UTC Mar 18,2008 06:06 AM UTC WinForms 2
Tags: FAQ
Asked On February 6, 2008 08:32 PM UTC

Hello. I'd like to have my advanced tabs look somewhat like the InternetExplorer7 TabStyle theme, but only with different colors. So, I guess that means I would need to draw the tabs myself. I have the code to draw the tabs, but can't figure out how to give them the rounded corner look. Can anyone help me? Here is my code so far:

void tabControlAdv1_DrawItem(object sender, Syncfusion.Windows.Forms.Tools.DrawTabEventArgs drawItemInfo)
Brush br = new System.Drawing.Drawing2D.LinearGradientBrush(this.tabControlAdv1.GetTabRect(1), System.Drawing.Color.FromArgb(0, 140, 202), System.Drawing.Color.FromArgb(0, 106, 182), System.Drawing.Drawing2D.LinearGradientMode.Vertical);
drawItemInfo.Graphics.FillRectangle(br, this.tabControlAdv1.GetTabRect(1));

Replied On February 7, 2008 07:42 PM UTC


Administrator [Syncfusion]
Replied On March 18, 2008 06:06 AM UTC

Hi Landon,

Thank you for your interest in Syncfusion Products.

To display TabStrips in InternetExplorer7 style, we can use TabRendererIE7 TabStyle. The following code snippet illustrates this:

this.tabControl.TabStyle = typeof(Syncfusion.Windows.Forms.Tools.TabRendererIE7);

Please let me know if any concerns.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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