Hello,
Can anyone give me a code that can copy all the content of a chosen notepad to a textbox? Thank you.
Printable View
Hello,
Can anyone give me a code that can copy all the content of a chosen notepad to a textbox? Thank you.
Do you want to load content of a text file into textbox or the current (and non file based) content of text editor like the Notepad?
If you need to work with the file then read these tuttorials (sample code can also be found there).
Thanks! I found all i need at "How to edit a text file without openning it":Quote:
Originally Posted by RhinoBull
Code:Open "C:\File.txt" For Input As #1
text1.text = Input(LOF(1), 1)
Close #1