Click here to Skip to main content
16,018,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a Form1 as mainmenu and form2 contain grid of database
by calling form2 from form 1 it takes 10 seconds to show form2
how to load immediately by calling from form1 and wait for loading
grid by statusbarprogress?
Posted

If it's taking ten seconds to load the form because you are loading the grid from the database, then you need to look at your design from a user perspective, because it is almost certainly badly flawed. How many records are you loading into the thing? Think of it from a user POV - how is he going to find the information he needs in a massive table?
Page the data, provide filters, searches, whatever (I don't know what you are showing, so I can't be specific) - just don't gibve him a massive page of data and expect him to be happy.
 
Share this answer
 
If you decide that your project still needs to pull a lot of data and you want a progress bar, it sounds like you may want to look into both the ProgressBar and the BackgroundWorker objects. You can find a lot of information on them by researching in:
Code Project Articles[^]
Google[^]
Or MSDN
BackGroundWorker Class[^]
ProgressBar Class[^]
 
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