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

Workbook Tab painting problem

Thread ID:





3829 Apr 11,2003 01:43 PM UTC Apr 14,2003 10:40 AM UTC WinForms 2
Tags: GridControl
Milen Kovatchev
Asked On April 11, 2003 01:43 PM UTC

Hi, I have found a problem with painting of the tab of a workbook with a singe page. When the TabBarSplitterControl has only one page it does not paint the tab when the window is invalidated. You can easily reproduce the problem by modifying your "Workbook" Grid example. Simply make the workbook have only one tab by removing two of the pages in the call to this.tabBarSplitterControl1.Controls.AddRange on line 89 of your C# "Workbook" Grid sample. Then after you run the sample move some other application over the sample application form and see how the tab disappears. I have found that this happens only when you have a single tab. Is there a workaround to fix that? Best regards, Milen

Administrator [Syncfusion]
Replied On April 14, 2003 08:07 AM UTC

Hi Milen, thanks for pointing this out. We'll get that fixed. As a workaround add the following line in the forms constructor after calling InitializeComponent: this.tabControl1.ActivePage = this.tabBarPage1; (within Form.Load event handler should also be fine) Stefan

Administrator [Syncfusion]
Replied On April 14, 2003 10:40 AM UTC

And add also the following handler: this.tabControl1.Paint += new PaintEventHandler(tabControl1_Paint); private void tabControl1_Paint(object sender, PaintEventArgs e) { this.tabControl1.Bar.TabBarChild.Dirty = true; } Stefan


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

Live Chat Icon For mobile
Live Chat Icon