Ive got a listbox, so when i click on a certain item, i want to open a text file into my textbox. The text files are in a extra folder called Tutorials. Here is what ive been trying to use to open the file:
VB Code:
Open App.Path & "\Tutorials\Common Dialog.txt" For Binary As #1 Dim scriptText As String: scriptText = Space(LOF(fnum)) Get #1, , scriptText txtCode.Text = scriptText Close #fnum
But that doesnt work. I even tried changing For Binary to Input. But it doenst load anything. Any ideas?
THANKS!![]()





Reply With Quote