By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,003 Members | 428 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,003 IT Pros & Developers. It's quick & easy.

Own Dummy Progress bar -Not moving- how to make it work.

P: 1
Hi There!!!
I am new to C# world.
I am getting huge chunk of data from a 3rd party applications thru SOAP request and updating to my SQL Server.
I cant implement Progress bar as there is no way to know how much data i will get back and its a complicated process.
So i decided to use a dummy progress bar, that is 5 moving dots, Which in turn gives user feeling of some progress happening.
But if i comment the actual getting data part (GetDataFromTally) progress bar moves. When i uncomment, my dots are not moving.
Actual code i pasted below.
What might be the problem and what i have to do to overcome this problem.
I am greatly helpful if some geek shows me some light on this...
Thanks in advance


private void GetData(object sender, EventArgs e)
{
System.Windows.Forms.Timer GetDataTimer = new System.Windows.Forms.Timer();
GetDataTimer.Interval = 300;
GetDataTimer.Enabled = true;
GetDataTimer.Tick += new System.EventHandler(OnTimerEvent);
GetDataTimer.Start();
errMsg = GetTallyData.GetDataFromTally();
....
....
....
}

//lblProgress font = Wingdings, so l = a dot symbol,
private void OnTimerEvent(object source, EventArgs e)
{
if (lblProgress.Text.Length == 5)
{ lblProgress.Text = ""; }
else if (lblProgress.Text.Length == 0)
{ lblProgress.Text = "l"; }
else
{ lblProgress.Text += "l"; }
}
May 9 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.