I have an application that fires of a workerthread where I do all my loading from a database. The workerthread is fired off from the Form.Load event and unless I put text into the radProgressBar, no information is being displayed on the screen. Also I cannot figure out how the set the percent value correctly to display. I have minimum and maximum values set to 1 and 100 and during progress worker thread event I send in correct percentage but it never updates percent in any of my forms....Help would greatly be appricated as we are trying to ship this product out this week.
According to documentation, I doing everything correctly...
Load Code:
radProgressBarSearchLocal.Minimum = 0;
radProgressBarSearchLocal.Maximum = 100;
radProgressBarSearchLocal.StepWidth = 12;
radProgressBarSearchLocal.Text =
"Loading Collection...";
radProgressBarSearchNetwork.Minimum = 0;
radProgressBarSearchNetwork.Maximum = 100;
radProgressBarSearchNetwork.StepWidth = 12;
radProgressBarSearchNetwork.Text =
"Loading Collection...";
radProgressBarSearchOutlook.Minimum = 0;
radProgressBarSearchOutlook.Maximum = 100;
radProgressBarSearchOutlook.StepWidth = 12;
radProgressBarSearchOutlook.Text =
"Loading Collection...";
totalitems = 0L;
processeditems = 0L;
radBack.Enabled =
false;
radCancel.Enabled =
false;
radNext.Enabled =
false;
radFilterLDCollection.Enabled =
false;
radFilterNDCollection.Enabled =
false;
radFilterOutlookCollection.Enabled =
false;
radSearchLDCollection.Enabled =
false;
radSearchOutlookCollection.Enabled =
false;
radSearcNDhCollection.Enabled =
false;
Program.myIndex = null;
this.Cursor = Cursors.WaitCursor;
whichbackground = 1;
backgroundWorker1.RunWorkerAsync();
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
switch (Program.activeCollection)
{
case COLLECTION_TYPE_LOCALDRIVES:
radProgressBarSearchLocal.Text = e.UserState.ToString();
radProgressBarSearchLocal.Value1 = e.ProgressPercentage;
radProgressBarSearchLocal.ProgressBarElement.PerformStepValue1();
radProgressBarSearchLocal.Refresh();
break;
case COLLECTION_TYPE_NETWORKDRIVES:
radProgressBarSearchNetwork.Text = e.UserState.ToString();
radProgressBarSearchNetwork.Value1 = e.ProgressPercentage;
radProgressBarSearchNetwork.ProgressBarElement.PerformStepValue1();
radProgressBarSearchNetwork.Refresh();
break;
case COLLECTION_TYPE_OUTLOOK:
radProgressBarSearchOutlook.Text = e.UserState.ToString();
radProgressBarSearchOutlook.Value1 = e.ProgressPercentage;
radProgressBarSearchOutlook.ProgressBarElement.PerformStepValue1();
radProgressBarSearchOutlook.Refresh();
break;
}
}
Progress event code:
Ray McCue
Software Consultant
ecWest LLC