How do I put text from a notepad .txt file into a text box on my form?
I am using this code
VB Code:
Dim iFileNum Dim txtInput iFileNum = FreeFile Open "C:\Test.txt" For Input As iFileNum Print #iFileNum, txtInput Close iFileNum Text1.Text = txtInput
but it says that its a bad file mode. how do I fix this?




Reply With Quote