I'm sure this is simple, but I can't work out how to do it!
I have an application that displays the contents of a certain directory in a FileList box. So far, so good. Typically the file list will contain .doc, .xls, vsd, .rtf, .pdf files. I want to be able to click on a file name, and have vb6 open that file with the relevant application and display the data. I intend to change the file attributes before displaying to 'Read-Only' as I do not want the file contents changing.
Is there a simple way to do this or do I need to examine the extension and launch the appropriate application?
Thanks in anticipation.
I have an application that displays the contents of a certain directory in a FileList box. So far, so good. Typically the file list will contain .doc, .xls, vsd, .rtf, .pdf files. I want to be able to click on a file name, and have vb6 open that file with the relevant application and display the data. I intend to change the file attributes before displaying to 'Read-Only' as I do not want the file contents changing.
Is there a simple way to do this or do I need to examine the extension and launch the appropriate application?
Thanks in anticipation.