thanks john! i got it to work ;)
Dim fullnamestring As String = DirectCast(ListBox3.SelectedItem, IO.FileInfo).FullName
RichTextBox1.Text = My.Computer.FileSystem.ReadAllText(fullnamestring)
earlier in my post i made mistake stating "combobox" i meant "listbox" :o:D
i still though tried your second code sample, (replacing combobox with listbox) and it gives me this error
"Conversion from type 'FileInfo' to type 'String' is not valid."
thanks! :)
hello everyone, hopefully i can explain this in a clear to understand way
what im trying to do is....
there are 2 comboboxes and a richtextbox.. on the first combobox you select #1 or #2.. if you select #1... combobox 2 now becomes populated with a list of files in a directory i specified...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.