Click here to Skip to main content
15,920,503 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created an EPOS application using Dynamic buttons,layouts,and other controls in one Panel. The dynamic buttons generated is based on the data retrieved from the database;

whenever I run the application, the the application is slow because of dynamically generated controls. when I click on a category button, the sub category buttons appears it will take some time to appear, then there are some little flickering on the screen.

What will I do? What is the best solution.

Thank you. So much
Updated 12-Sep-13 0:18am
ZurdoDev 12-Sep-13 7:37am    
If you want us to look at your code and see if there is a way to improve the speed then you'll need to click on improve question and post the relevant code. Also, have you traced and debugged it to make sure it is the dynamic creation that is slow and not something else?
BillWoodruff 12-Sep-13 9:04am    
How many buttons are generating (minimum, maximum), and how often are you generating them ? Once you've generated a set of buttons, do you dispose of them, or re-use them ? Need to know exactly what you are doing, as well, as, as RyanDev suggests, see some code.
syed shanu 12-Sep-13 23:58pm    
How many controls are loading on ur panel.Chk this article here i will add controls at runtime ,but i didnt face and performance issue in my program ,Iam loading from xml.
Maciej Los 13-Sep-13 9:09am    
Can't you use XML file?

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