none
How to show progress bar in windows application? RRS feed

  • Question

  • Hi All,

    I am working on a windows application using c#.

    I have a form and a class having all methods .

    I have a method in class in which i am processing some files in arraylist. I want to invoke progress bar method for this file processing but its not working.

    Any help

    PFB my code snippet:

    public void TraverseSource()

    {

    string[] allFiles1 = Directory.GetFiles(sourcePath, "*.xml", SearchOption.AllDirectories);

    allFiles =

    new ArrayList();

    length = allFiles.Count;

    foreach (string item in allFiles1)

    {

    if (!item.Substring(item.Length - 6).Equals("MD.xml"))

    {

    allFiles.Add(item);

    }

    }

    Friday, May 18, 2012 3:44 AM

Answers

All replies