Discussion Locked

Invoking Notepad in VB 6 application

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

3 replies

by christian.cloutier

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.

This discussion is closed to new replies.