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.
Syncfusion Feedback

TabControlExt paint problems (2.0 beta)

Thread ID:

Created:

Updated:

Platform:

Replies:

9503 Dec 22,2003 11:19 AM UTC Oct 12,2005 12:36 AM UTC Windows Forms 12
loading
Tags: Tools
Sigurdur G. Gunnarsson
Asked On December 22, 2003 11:19 AM UTC

Hi, When I have ThemesEnabled on, the tabcontrol isn''t drawing itself properly. It''s ok in the designer and sometimes when running, but appearently randomly. I just tried running my program and the first time it was ok, but the next (same build) is wasn''t. I''m trying to find out if anything I''m doing is causing this, but this is pretty weird. I attached a screenshot which shows the program running and the VS.NET designer behind it. tab_bug_183.zip

Sigurdur G. Gunnarsson
Replied On December 22, 2003 11:52 AM UTC

This happens only if my splash form is displayed, if I disable that this never happens. The splash form is started on a seperate background thread and is closed when the main form is done loading. Hope this helps, if not feel free to ask me for further help. Looking forward to the next beta :)

Administrator [Syncfusion]
Replied On December 22, 2003 06:33 PM UTC

Hi Sigurdur, I have put together a sample_application in v2.0.1.0 (2.0 beta) as per your specifications above and the TabControlExt seems to have no painting issues when ThemesEnabled is set to true. Please take a look at the sample and let me know if this meets your requirements. If not, kindly modify it show above mentioned the painting error. We appreciate your cooperation and thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Sigurdur G. Gunnarsson
Replied On January 5, 2004 12:52 PM UTC

Hi, Sorry for the late reply, just got back to work today after a small vacation. Here is your sample modified to show the behaviour I mentioned. Fyrst try to compile a DEBUG build and start it with debugging (F5) and it works ok. Then try a RELEASE build and start without debugging (CTRL+F5) and it bums out :P I wasn''t using the splash component from you but another method, and something in there is causing this. TabControlAdv_test_9976_NEW_8401.zip

Administrator [Syncfusion]
Replied On January 5, 2004 10:13 PM UTC

Hi Sigurdur, Thanks for the update and for the modified sample application. I could observe the above mentioned problem here when your sample was compiled in ''Release'' mode. However, we will further investigate this and I will keep you informed regarding the developments. Thanks for your patience. Regards, Guru Patwal Syncfusion, Inc.

Sigurdur G. Gunnarsson
Replied On April 20, 2004 04:04 PM UTC

This is still happening in the RC1 release (2.0.3.0), could you give me an update on this?

Administrator [Syncfusion]
Replied On April 21, 2004 08:10 PM UTC

Hi Sigurdur, After having consulted the development team in this regard, I would like to inform the following : The problem seems to be that the EnableVisualStyles call does not work as intended if some code is executed before the application starts. In this case, you are starting a thread to display your own form as a Splash screen. It does not use our SplashControl, but we suspect that the same problem could occur even if it does. One of our users had a similar problem sometime back and Microsoft had provided them with a solution. We have requested the user for information regarding this solution, and I will update you on this as we hear from them. We appreciate your patience and cooperation. Regards, Guru Patwal Syncfusion, Inc.

Sigurdur G. Gunnarsson
Replied On April 26, 2004 05:34 PM UTC

I''ve tried one of the recommended fixes, run "Application.DoEvents();" just before the Application.Run(). That fixes some VisualStyles problems, but not this one. I''ve also tried doing this before I spawn the splash thread and tried changing the order of things in the startup sequence but nothing works. What would you recommend? the reason I do it this way is that I want the splash form up on the screen ASAP, and this way helps me get it before the main form is even loaded. Any tips or ideas are greatly appreciated :)

Sigurdur G. Gunnarsson
Replied On April 27, 2004 04:42 PM UTC

Just to let you know, I''ve found a solution. It involves manually setting up an ApplicationContext and using the Application.Idle event to initialize the context. If anyone is interesting in the details send me an email at sigurdg(at)kbbanki.is

Administrator [Syncfusion]
Replied On April 27, 2004 05:01 PM UTC

Hi Sigurdur, Thanks for sharing this information with us. We are glad that you could work around this problem. Please let us know if you need any other information. Regards, Guru Patwal Syncfusion, Inc.

Sigurdur G. Gunnarsson
Replied On July 13, 2004 07:44 AM UTC

Some people have asked me for this solution, so here is a quick sample. It may not be the best way, but it works :) AppLoader_demo_189.zip

csdk1
Replied On December 21, 2004 04:41 PM UTC

Sorry but this still doesn''t seem to work. >Some people have asked me for this solution, so here is a quick sample. It may not be the best way, but it works :) > > > >AppLoader_demo_189.zip > >

Stephen McFall
Replied On October 12, 2005 12:36 AM UTC

All these problems are solved via the use of a manifest as Application.EnableVisualStyles is simply poorly implemented. End of story. >Sorry but this still doesn''t seem to work. > >>Some people have asked me for this solution, so here is a quick sample. It may not be the best way, but it works :) >> >> >> >>AppLoader_demo_189.zip >> >>

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.

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

;