cabalsdemon
New member
- Joined
- May 11, 2013
- Messages
- 2
- Programming Experience
- 3-5
i am a beginner at vb trying to populate a listbox then when i need to delete the selected file from list box it wont work please help thanks
i am using this code
and i am trying to figure out how to make a remove selected code with the data that code brings in
and every code that i try it always give this error
i am using this code
VB.NET:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click OpenFileDialog1.ShowDialog()
TextBox1.Text = OpenFileDialog1.FileName
BindingSource1.Add(OpenFileDialog1.FileName)
ListBox1.Select()
End Sub
and every code that i try it always give this error
Items collection cannot be modified when the DataSource property is set