Answer the question
In order to leave comments, you need to log in
ProgressBar with asynchronous tasks, how to do it right?
There is a progress bar on the form, which is filled in several steps as resources are loaded, something like this:
void LoadResources() {
LockUI(); // выключаем кнопки и т.д.
LoadImages();
progressBar1.Value = 25;
LoadMusic();
progressBar1.Value = 50;
LoadFonts();
progressBar1.Value = 75;
LoadIcons();
progressBar1.Value = 100;
UnlockUI(); // включаем кнопки и т.д.
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question