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).
Microsoft MVP - Visual Basic 2006-2013 Why VB clears the clipboard on startup and how to avoid it? . Filtering Arrays . Save File To Database . Extract File From Database . Extract picture from database without using hard drive . Change Menu BackColor . How to use MS Flexgrid . Make Frame Transparent . The Easiest Way to Create an NT Service With VB6 . How to comment blocks of code in VB5 and VB6 . How to find and replace missing members of control array Visual Basic 6.0 On-Line Documentation . Connection Strings
Originally Posted by RhinoBull Do you want to load content of a text file into textbox? ... If you need to work with the file then read these tuttorials... Thanks! I found all i need at "How to edit a text file without openning it": Code: Open "C:\File.txt" For Input As #1 text1.text = Input(LOF(1), 1) Close #1
Open "C:\File.txt" For Input As #1 text1.text = Input(LOF(1), 1) Close #1
Forum Rules