Click here to Skip to main content
15,905,782 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
[^]
i have used the tip in this article it works on the windows 7 but with windows xp the screen background shows once the form finish painting the background disappear.

does anyone know how to solve it.
the problem when overriding the createparams
Posted
Comments
Sergey Alexandrovich Kryukov 16-Aug-12 16:34pm    
You need tag the application type or the library you use. WPF? Forms? Silverlight? ASP.NET? Metro? What?
--SA

As a general suggestion, enclose your painting/updating logic inside a Control.BeginUpdate() and Control.EndUpdate() block, it would reduce your flickering to a great extent. If you are still not satisfied, you can enable DoubleBuffering.
 
Share this answer
 
Comments
Waleedkassem 16-Aug-12 14:06pm    
thank you shameel
Sergey Alexandrovich Kryukov 16-Aug-12 16:33pm    
This is a valid and potentially effective suggestion, but it only applicable to some UI libraries, like System.Windows.Forms. Too bad OP did not specify it, but this is not your fault, therefore I voted 5.
--SA
[no name] 16-Aug-12 19:54pm    
The link he posted has reference to UserControls, therefore I assumed he is talking about WinForms, he could have been clearer though.
I used simple trick is to use timer to show the form hidden after some timer i increase the visibilty to fully show the form, showing the form at once make it harder to be rendered,

when i Load the form i set the Opacity = 0; and i enabled a timer, on timer tick
Opacity += 0.05 when the opacity ==1 i disable the timer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900