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

Workbook Tab painting problem

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

2 Replies

AD Administrator Syncfusion Team 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

AD Administrator Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon