Open file in a running application
Hello
I have written a program in VB 6.0 that I use to organize files that I have created (in AutoCad), so that I can find them quickly without wasting time. I want to write some code that will open a file when I click on the text box containing the file path/name, I want the file to be opened in a running instance of AutoCad, not Shell out and open AutoCad with the file as a parameter. Is this possible? I hope that I have explained the problem clearly.
Thank You
John
Re: Open file in a running application
It appears you'll have to set some settings in AutoCAD first (something about single/multiple program instance) before you can open files (via ShellExecute API) in the existing instance. Follow the discussion in this AutoCAD forum.
Re: Open file in a running application
Thank you for this information. I am finding out about ShellExecute now.
Thanks
John
Re: Open file in a running application
http://support.microsoft.com/kb/170918
This is an explanation of shellexecute using vb 6.0
Re: Open file in a running application
http://support.microsoft.com/kb/170918
the information in this article solved the problem completely
thanks again
john
Re: Open file in a running application
Glad to hear it! :)
You may now mark this thread :check: Resolved!