Click to See Complete Forum and Search --> : open a TXT file with notepad


July 10th, 2000, 01:40 AM
if I have a TEXT file..I want to open it by Notepad after clicked a button in VB..
how can I do so??
which control should I use?
Thank you

Lothar Haensler
July 10th, 2000, 01:46 AM
use the Shell function:

shell "notepad.exe " & yourfilePath


or use the ShellExecute API