Hi All,
I have developed a winform application in .Net 2.0 using C#. My page has few labels and 3 images of 10k each. It takes about 1 second to display the contents after load and hence ahows a flikering effect.
I tried with some buffer techniques but was not able to get a solution.
Kindly let me know how to improve the performance.
Regards
Anurag Banka

.Net 2.0 Winform takes time to load controls
Airex
Rahul_hk1
I have the problem with every control. I mean If I use a button I've the same flickering problem.
Any ideas
Thanks a lot !!!
Telemachus
It may take more time to load if you have references to other assemblies, like System.Xml.dll - if you don't use them - remove references.
If it's really critical - try to play with NGEN utility, it may help.
Paul Wheeler
Then you must start load images after you show form. In OnLoad() method you must write something like this:
BeginInvoke(new delegate{
}, null, null);
this will make sure that after OnLoad() called and all pending requests handled, your form will execute anonymous delegate on the same thread and will load image.
Alaska
Can you please profile your application and share the result with use
A free profiler is Nprof, nice, free and easy.
When you want a full profiler with just some extra compared to Nprof i suggest ANTS Profiler.
Here is a full list of available tools:
Anubhava
jmwatte
Hi!
Did you try properties like WaitOnLoad and ImageLocation
StuUK
Anderson Farias Carneiro
Yes
I have already tried WaitOnLoad. It helps me a bit on images but the controls still come in a flikering manner. Moreover the same page in 1.1 does not takes this time. The complete page loads as a single unit without giving any effect like that in current.
Christopher.Gao
Thanks
This helped me to reduce the time and flickering on Image load. But the control still take time to load. I have tried after removing the background Image and other Images i was using. The controls still load in about .5 secs whereas in .Net 1.1 all the controls load without such flickering effect.
Praj
I have the same problem about the flikering !!! I have a winform with a webbrowser and a pictureBox and when the mouseleave a flik appear. The problem is with VS 2005 (framework 2.0) but not with VS 2003 (Framework 1). I change the controls to a simple button and the problem persist. I use a backgroung image
Any idea people
Thanks a lot !!!!