Browse

rosshodges

Freshman
Joined
Nov 23, 2002
Messages
28
I have the following code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFile1.ShowDialog()
ListBox2.Items.Add(ListBox2.Text)
End Sub

It adds the file to the list box but it doesnt display the file name or path its just a blue line?!

Any help is welcome!
Regards,
Ross
 
Err, you're adding the listbox's text to the listbox. Don't you have to be adding OpenFile1.FileName instead?
 
Back
Top