By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,374 Members | 1,768 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,374 IT Pros & Developers. It's quick & easy.

How to open a file using a specific application using vb

P: 17
Dear All,

We have a requirement to open any file using a specific application and showing it within a activex control.
For example, bmp file can be shown in Internet explorer, paint brush, photo shop etc. The user will specify the exe
path of the application alone. If word application has to be opened, user will specify just "WINWORD.EXE" or "WORDPAD.EXE" path.
I need the newly opened application handle for showing it within an activex control. I tried using "shell" & "shellexecute" api's.
With "shellexecute" i am not able to get the newly opened application handle. With shell i am able to get instance handle, but
it is not working properly. Could you please help me in solving this requirement with a good example?

Apr 20 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.