-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: vipul_vips
Message 3 in Discussion
Hi,
<MSDN>
private void CopyWithProgress(string[] filenames)
{
// Display the ProgressBar control.
System.Windows.Forms.ProgressBar pBar1 = new
System.Windows.Forms.ProgressBar();
pBar1.Visible = true;
// Set Minimum to 1 to represent the first file being copied.
pBar1.Minimum = 1;
// Set Maximum to the total number of files to copy.
pBar1.Maximum = filenames.Length;
// Set the initial value of the ProgressBar.
pBar1.Value = 1;
// Set the Step property to a value of 1 to represent each file
being copied.
pBar1.Step = 1;
// Loop through all files to copy.
for (int x = 1; x <= filenames.Length; x++)
{
// Copy the file and increment the ProgressBar if successful.
if(CopyFile(filenames[x-1]) == true)
{
// Perform the increment on the ProgressBar.
pBar1.PerformStep();
}
}
}
Regards,
Vipul Patel
Patni Computer Systems Ltd.
Akruti Softech Park, Pocket No. 7, 'C' Cross Road # 21,
Marol MIDC, Andheri (E), Mumbai - 400 093
Tel: +91 22 5693 0500 Extn. - 2041
Fax: +91 22 5693 0211
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
-----Original Message-----
From: kirancobi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 3:09 AM
To: BDOTNET
Subject: progress bar problem
-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: kirancobi
Message 1 in Discussion
HI, everyone i need sample code for progress bar for c# any lweb links or
sample codes are welcome please reply as early as possible thank u kiran
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your
E-mail Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On
the pre-addressed e-mail message that opens, simply click "Send". Your
e-mail address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]