469,270 Members | 1,026 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Form loading speed c#

Hi all!

I have a problem regarding form loading speed. I have forms with many controls and some time ago I've implemented a fader that uses a symbollic millisecond of fade time to buffer the layout of the form. It works great, no flicker whatsoever, but even with settings on minimum, it creates some noticable delay between all form loading operations and final show. When i turn it off, form loads practically on click, but with ugly flicker which i haven't be able to circumvent. Now, is there a way to combine the two: the flicker-free loading of the fader and fast response? maybe a fader trick or something?
Dec 24 '07 #1
1 1858
Eventually I found the solution:

protected override CreateParams CreateParams
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000;
return cp;

I wonder why it's so well concealed in the 2.0 framework when it obviously works great (if you're not using owner drawing)!
Jan 24 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by ken | last post: by
2 posts views Thread by thomasp | last post: by
4 posts views Thread by mikrogen | last post: by
4 posts views Thread by BerkshireGuy | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.