I have a program where it takes about 4-6 seconds to load(lets call it form2). form2 has a lot of code so what I want to do is create a progress bar.
Form1 has the button that takes me to form2.
So what I want to do is load a new form that has a progressbar(FormProgress), so when the user clicks on Form1 it opens FormProgress and loads the progressbar then closes it after form2 has loaded.
I know i need to use a second thread but I don't really know how to use it for that purpose.
My code has
'Several lines of code
Another problem I have is that FormProgress is frozen until form2 is loaded completely So my second thread runs but FormProgress does not load the progress bar until form2 is loaded.
Can someone also point me to a very good tutorial that is understandable how to Invoke & and using Delegates so i can learn it correctly. Thanks