G
Guest
Dear, I have windows form , the form is using a class to do all tasks needed
like this
private void btnProcess_Click(object sender, System.EventArgs e)
{
btnProcess.Enabled = false;
MailBoxRenamer oMailBox = new MailBoxRenamer();
//How Can i make the progress bar moving while rename processing is
underway
pBarCtrl.Visible = true;
oMailBox.RenameAll();
MessageBox.Show("Operation Successfully Completed","Operation
Done",MessageBoxButtons.OK,MessageBoxIcon.Information);
btnProcess.Enabled = true;
}
oMailBox is object of MailBoxRenamer class that do following:
1. Get All Files in Specified Directory
2. Get the Name Of each folder and query the database about its relative ID
3. Rename the folder from the name to ID
All I need how to enable dynamic progress action during renaming
like this
private void btnProcess_Click(object sender, System.EventArgs e)
{
btnProcess.Enabled = false;
MailBoxRenamer oMailBox = new MailBoxRenamer();
//How Can i make the progress bar moving while rename processing is
underway
pBarCtrl.Visible = true;
oMailBox.RenameAll();
MessageBox.Show("Operation Successfully Completed","Operation
Done",MessageBoxButtons.OK,MessageBoxIcon.Information);
btnProcess.Enabled = true;
}
oMailBox is object of MailBoxRenamer class that do following:
1. Get All Files in Specified Directory
2. Get the Name Of each folder and query the database about its relative ID
3. Rename the folder from the name to ID
All I need how to enable dynamic progress action during renaming