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.

Workbook Tab painting problem

Thread ID:

Created:

Updated:

Platform:

Replies:

3829 Apr 11,2003 09:43 AM Apr 14,2003 06:40 AM Windows Forms 2
loading
Tags: GridControl
Milen Kovatchev
Asked On April 11, 2003 09:43 AM

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 04:07 AM

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 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; } Stefan

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.

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.

;