473,395 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Improve Performance of windows Form

Hello all
I have a windows form,in this page I am creating lots of controls at runtime.So when my form is load it takes time to load all controls.How can i improve performance of that page.I have Call the InitializeComponet() function in constructor of the class.
Sep 12 '07 #1
11 2112
Shashi Sadasivan
1,435 Expert 1GB
Hello all
I have a windows form,in this page I am creating lots of controls at runtime.So when my form is load it takes time to load all controls.How can i improve performance of that page.I have Call the InitializeComponet() function in constructor of the class.
Have a look at this

Gives a few tips on what to do!

cheers
Sep 12 '07 #2
SammyB
807 Expert 512MB
Have a look at this

Gives a few tips on what to do!

cheers
Great link! Thanks! --Sam
Sep 13 '07 #3
Great link! Thanks! --Sam
Actually i have lots of control in a panel.and when the form is loaded flicker problem is there.I want to do flicker free painting.
Sep 13 '07 #4
Shashi Sadasivan
1,435 Expert 1GB
Actually i have lots of control in a panel.and when the form is loaded flicker problem is there.I want to do flicker free painting.
The link says.....double buffering..download the sample....it looks good :)
cheers
Sep 13 '07 #5
The link says.....double buffering..download the sample....it looks good :)
cheers
I have done double buffering in my code,but still i got flickering effect when form loads
Sep 14 '07 #6
SammyB
807 Expert 512MB
I have done double buffering in my code,but still i got flickering effect when form loads
Do you use the SuspendLayout method on all of you container controls before adding the controls to them? Then, after all of the controls have been added,
Sep 14 '07 #7
Do you use the SuspendLayout method on all of you container controls before adding the controls to them? Then, after all of the controls have been added,
Thanks For the reply
Yes I have used SusPendLAyout() methode.But still I am facing same problem
Sep 24 '07 #8
Killer42
8,435 Expert 8TB
Yes I have used SuspendLayout() method. But still I am facing the same problem.
Perhaps you could just hold off on displaying the form until the controls have been created?
Sep 24 '07 #9
hbxtlhx
10
decrease controls and using listview, datagrid etc
Sep 24 '07 #10
Killer42
8,435 Expert 8TB
delete form, dynamite computer, etc.
Sep 24 '07 #11
Killer42
8,435 Expert 8TB
Or alternatively, what about creating more of the controls at design time, then just modifying their properties at runtime?
Sep 24 '07 #12

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

Similar topics

9
by: Peng Jian | last post by:
I have a function that is called very very often. Can I improve its efficiency by declaring its local variables to be static?
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
1
by: Oberfuhrer | last post by:
Hello all VB.net friends ! i have done most of my programming in assembly, at least so far. Recently i decided to learn a high level language for windows programming. I didnt take long to...
2
by: sdanda | last post by:
Hi , Do you have any idea how to improve my java class performance while selecting and inserting data into DB using JDBC Connectivity ......... This has to work for more than 8,00,000...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.