Hi Sotto,
This question is only valid if you have to load a real hugh dataset because
in the other situations it goes to fast and your user does not see the
progressbar,
Also it is crazy to load that dataset, if the user has not loged in.
Scenario for that hugh database can be
Get the count of the table you want to read by a executescalar
Create an extra form that holds the progressbar
Keep control to that form from the class where you are loading the dataset
(the database samples in the VB. resource kit are doing that)
In my opinion you do not need multithreading for that (It would not give any
advantages)
If you want to save time while the user logs in by loading the dataset in
the same time.
Than you can try it with multithreading, but I think that will cost you a
lot of code, expirience and checks if all is synchronized well.
I hope this helps
Cor
I need a loginscreen, that will show a progressbar that changes values
based on a method in the main application (loading data from database)
how would i do this?
(i guess i need threading for this)
the main application shouldn't be accessible when the login password
hasn't been entered correctly.
anybody who can give me some help with this?
threading is new to me