Hi all I have to make a form in my project which includes text NOW LOADING following 4 to 5 dots like ......, Now my motive is that on loading that form the dots should look like moving as is mormally seen in all softwares and games. i have used timers but all in vain.
Any Idea please..
I will explain one of these ways, maybe it suitable to you
In first you should make sequence actions or steps , and then calculate the total steps you will do, and when you finish an step add a step in the progress bar
// in first you should make new thread to make the sequence actions to make the updates appear in the progress bar.
// Call the this method to start loading data
private void StartLoadingData()
Thread thrLoadData = new Thread(new ThreadStart(LoadData));
// put your actions to load data in the next methods
private void LoadData()
// number of actions you will do
int noActions = 5;
// Initilaize the progressBar1
progressBar1.Minimum = 0;
progressBar1.Maximum = noActions;
progressBar1.Step = 1;
// DO action 1 -- ex: load intro Movie
// Write code of Action 1 ...
// DO action 2 -- ex: draw main menu items and user profiles
// Write code of Action 2 ...
// DO action 3 -- ex: intilaize default / user settings
// Write code of Action 3 ...
// DO action 4 -- ex: check for online updates
// Write code of Action 4 ...
// DO action 5 -- ex: check for valid license
// Write code of Action 5 ...
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...