C#
ProgressBar ProBar = new ProgressBar();
private void import(object sender, EventArgs e)
{
if (listView1.Items.Count == 0)
{
this.ProBar = new System.Windows.Forms.ProgressBar();
this.ProBar.TabIndex = 0;
this.ProBar.Maximum = dlg.FileNames.Length;
this.ProBar.Minimum = 1;
this.ProBar.Step = 1;
foreach (string path in dlg.FileNames)
{
FileInfo fileInfo = new FileInfo(path);
listView1.Items.Add(path);//fileInfo.Name
imageList.Images.Add(Bitmap.FromFile(path));
ProBar.PerformStep();
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted May 7, 2009, 10:27 PM EDT
Try this:
1.http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=798
2.http://www.codeproject.com/KB/miscctrl/progresswnd.aspx