Invoking Notepad in VB 6 application
I have a text file, inv.txt, and would like to
open it with notepad invoked from VB6 application during a click event of the command button.
Web Development
I have a text file, inv.txt, and would like to
open it with notepad invoked from VB6 application during a click event of the command button.
In your OnClick event handler just add this:
Shell("Notepad.exe inv.txt")
You might need to add some more information if inv.txt in not in the current directory, etc...
This will start notepad and open inv.txt in a SEPARATE process (asynchronously).
If you need to do something more elabore contact me using my e-mail.
Chris.
by setivi
worked for me.
Thanks
by setivi
This discussion is closed to new replies.
Sort by Trending