My VB6 program has a link to a document file (like a .txt, .pdf or .jpg) on a label (say lblDoc.caption) on the form which points to a file on his C drive.
I need to open the file for the user using the default program on his computer for that type of document in order for him to display it in whichever format it is in.
I think I need to use the SHELL function.
How do I establish his default program for that type of file and what is the syntax to open it?
Thanks so much
I need to open the file for the user using the default program on his computer for that type of document in order for him to display it in whichever format it is in.
I think I need to use the SHELL function.
How do I establish his default program for that type of file and what is the syntax to open it?
Thanks so much