title: vb.net loop through list box contains path for rtf files then convert to html code then insert to datagridview
body: <p>I have a problem with vb.net code, after i finished with all codes that get files from path then loop through this list to get RTF text then convert it to HTML... until here everything is okay
  <strong>my problem starts here>>></strong> inserting the result to new row in datagridview it just does this to first row, then stops after that!
  here's the codes</p>
  
  <pre><code>     For i = 0 To ListBox1.Items.Count - 1
          'get RTF files...
          RichTextBox1.LoadFile(ListBox1.Items(i).ToString(), 
          RichTextBoxStreamType.RichText)
          RichTextBox1.SelectAll()
          RichTextBox1.SelectionAlignment = 
          HorizontalAlignment.Right
  
          'Convert to html method...
          converttohtml()
  
          'just for fallow the process
          MsgBox("Ok " + i.ToString())
  
          'insert new row with the html result
          DataGridView1.Rows.Insert(i, New String() {RichTextBox2.Text, RichTextBox1.Text})
  
          'increase progress by one
          ProgressBar1.Value += 1
      Next
  </code></pre>