rosshodges Posted December 21, 2002 Posted December 21, 2002 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 Quote "Drink wet cement and get really stoned"
*Gurus* divil Posted December 21, 2002 *Gurus* Posted December 21, 2002 Err, you're adding the listbox's text to the listbox. Don't you have to be adding OpenFile1.FileName instead? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
rosshodges Posted December 22, 2002 Author Posted December 22, 2002 Thanks Yeah thats works. Thanks! Ross Quote "Drink wet cement and get really stoned"
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.