Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i create a application in vb.net ....
when i run application after buliding when form load on the screen...
take 1 or 2 min ...display fully..

plz help ....
Posted
Comments
DinoRondelly 19-Dec-12 11:58am    
What is your application doing on start up?
joshrduncan2012 19-Dec-12 12:19pm    
Do you have a lot of background processes on start up?
priyanshbhaliya 20-Dec-12 5:15am    
my application use dataset,datareader,dataadapters........
Newtoxton 21-May-18 16:52pm    
Since you processing these values from the db, then a way to improve that is to index the db fields, and also create a sub routine and call it from a thread none other than the main like:

import system.threading.thread

dim thr as system.threading.thread
thr=new thread(addressof "sub routine")
thr.start()

That should on the one you register at the form load and let the main ui thread take care of the bitmap form load.

That depends on how you have the project setup, along with what is in your load method.

From there it could be several reasons, so would need more information to answer this to the fullest extent.

Thanks
 
Share this answer
 
What's your app doing on startup that takes so long?? Without knowing that, it's impossible to tell you what to do to improve things.
 
Share this answer
 
Comments
priyanshbhaliya 20-Dec-12 5:16am    
my application use dataset,datareader,dataadapters........
Dave Kreskowiak 20-Dec-12 7:44am    
So what? WHAT DO YOU DO ON STARTUP? What are you doing that takes so long?
priyanshbhaliya 20-Dec-12 11:06am    
hey winform display fully with component ...
Dave Kreskowiak 20-Dec-12 16:01pm    
I don't have a clue what you're talking about. We know NOTHING about your app or why it's taking so long. Only YOU can tell us that and for some reason, you're refusing to answer that basic question. WHAT IS YOUR APP DOING that takes so long?
priyanshbhaliya 21-Dec-12 5:17am    
app is for paper create 4 class.....
dude....i say that ..when my app. load at screen ..form so not clear(means without component) after 1min it display complete...
so i want to display form complete on screen fast as fast ... now clear.. thanks
Just stop trying to merge Quantum Field Theory with General Relativity in the Form Load method.
 
Share this answer
 
Comments
priyanshbhaliya 20-Dec-12 5:17am    
not understand.....explain what is that theory...
If you are doing a lot of stuff in the onLoad, but it doesn't need to load before the user sees the form you can always go multithreaded:


VB
VB
Dim t As New Task(Function() MergeQuantumTheoryAndGeneralRelativity(42))
t.Start()


C#
C#
Task t = new Task(() => MergeQuantumTheoryAndGeneralRelativity(42));
t.Start();
 
Share this answer
 
v2
Comments
CPallini 19-Dec-12 16:21pm    
5. Even if you confine yourself to classic quantum mechanics.
priyanshbhaliya 20-Dec-12 5:17am    
thanks to all ....

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