title: How to display name on progressbar in vb.net
body: <p>In my vb.net winform application, writing a file from one directory to another. I have the progressbar1 to show the status of copy. Now I want to display the current filename that is copying on progressbar1.</p>
  
  <p>Any suggestions please?</p>
  
  <pre><code>ConfigWindow.FileProgressBar.Visible = True
  Dim fileLines() As String = System.IO.File.ReadAllLines("C:\Desktop\Demo.csv")
  ConfigWindow.FileProgressBar.Maximum = fileLines.Count + 1
  ConfigWindow.FileProgressBar.Minimum = 0
  ConfigWindow.FileProgressBar.Value = 0
  
  For index As Integer = ProgressBar1.Minimum To ProgressBar1.Maximum
  
      ConfigWindow.FileProgressBar.Value = index
      ConfigWindow.FileProgressBar.PerformStep()
  
  Next
  </code></pre>
  
  <p>During file copy progressbar is moving till the end and it is working absolutely fine. Onle concern is displaying filename on progressbar.</p>