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?
ADAdministrator Syncfusion Team April 14, 2003 04:07 AM
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)
ADAdministrator Syncfusion Team April 14, 2003 06:40 AM
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;