|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Common dialog controlHi,
I'm using the common dialog control to open PDF & text files. They don't need to be embedded into forms or anything, simply opened from the application. Once I've chosen the file, hoe do I then open it to be displayed? I tried using shell, but that only appears to work for .exes. Hope someone can throw some light in this direction. Thanks very much for any fothcoming help Ant Look up the ShellExecute API.
-- Show quoteHide quoteChris Hanscom - Microsoft MVP (VB) Veign's Resource Center http://www.veign.com/vrc_main.asp -- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ "Ant" <A**@discussions.microsoft.com> wrote in message news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com... > Hi, > I'm using the common dialog control to open PDF & text files. They don't > need to be embedded into forms or anything, simply opened from the > application. Once I've chosen the file, hoe do I then open it to be > displayed? I tried using shell, but that only appears to work for .exes. > Hope someone can throw some light in this direction. > > Thanks very much for any fothcoming help > Ant Hi,
Thanks for the response. How do I use the ShellExecute API? What is an API? Is it something I reference? If you can give me a brief example it would be most helpful. I found it in MSDN, but simply typing ShellExecute with the apporpriate arguments threw up an error. Thanks very much for your time Ant Show quoteHide quote "Veign" wrote: > Look up the ShellExecute API. > > -- > Chris Hanscom - Microsoft MVP (VB) > Veign's Resource Center > http://www.veign.com/vrc_main.asp > -- > Read. Decide. Sign the petition to Microsoft. > http://classicvb.org/petition/ > > > "Ant" <A**@discussions.microsoft.com> wrote in message > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com... > > Hi, > > I'm using the common dialog control to open PDF & text files. They don't > > need to be embedded into forms or anything, simply opened from the > > application. Once I've chosen the file, hoe do I then open it to be > > displayed? I tried using shell, but that only appears to work for .exes. > > Hope someone can throw some light in this direction. > > > > Thanks very much for any fothcoming help > > Ant > > > Did you try the sample provided by the link by Randy?
-- Show quoteHide quoteChris Hanscom - Microsoft MVP (VB) Veign's Resource Center http://www.veign.com/vrc_main.asp -- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ "Ant" <A**@discussions.microsoft.com> wrote in message news:95DE94D5-ECB9-44D0-996B-FD983ECABA71@microsoft.com... > Hi, > Thanks for the response. How do I use the ShellExecute API? What is an API? > Is it something I reference? If you can give me a brief example it would be > most helpful. I found it in MSDN, but simply typing ShellExecute with the > apporpriate arguments threw up an error. > Thanks very much for your time > Ant > > > > "Veign" wrote: > > > Look up the ShellExecute API. > > > > -- > > Chris Hanscom - Microsoft MVP (VB) > > Veign's Resource Center > > http://www.veign.com/vrc_main.asp > > -- > > Read. Decide. Sign the petition to Microsoft. > > http://classicvb.org/petition/ > > > > > > "Ant" <A**@discussions.microsoft.com> wrote in message > > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com... > > > Hi, > > > I'm using the common dialog control to open PDF & text files. They don't > > > need to be embedded into forms or anything, simply opened from the > > > application. Once I've chosen the file, hoe do I then open it to be > > > displayed? I tried using shell, but that only appears to work for ..exes. > > > Hope someone can throw some light in this direction. > > > > > > Thanks very much for any fothcoming help > > > Ant > > > > > > No sorry, I didn't see the link. Having a look now.
Cheers Ant Show quoteHide quote "Veign" wrote: > Did you try the sample provided by the link by Randy? > > -- > Chris Hanscom - Microsoft MVP (VB) > Veign's Resource Center > http://www.veign.com/vrc_main.asp > -- > Read. Decide. Sign the petition to Microsoft. > http://classicvb.org/petition/ > > > "Ant" <A**@discussions.microsoft.com> wrote in message > news:95DE94D5-ECB9-44D0-996B-FD983ECABA71@microsoft.com... > > Hi, > > Thanks for the response. How do I use the ShellExecute API? What is an > API? > > Is it something I reference? If you can give me a brief example it would > be > > most helpful. I found it in MSDN, but simply typing ShellExecute with the > > apporpriate arguments threw up an error. > > Thanks very much for your time > > Ant > > > > > > > > "Veign" wrote: > > > > > Look up the ShellExecute API. > > > > > > -- > > > Chris Hanscom - Microsoft MVP (VB) > > > Veign's Resource Center > > > http://www.veign.com/vrc_main.asp > > > -- > > > Read. Decide. Sign the petition to Microsoft. > > > http://classicvb.org/petition/ > > > > > > > > > "Ant" <A**@discussions.microsoft.com> wrote in message > > > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com... > > > > Hi, > > > > I'm using the common dialog control to open PDF & text files. They > don't > > > > need to be embedded into forms or anything, simply opened from the > > > > application. Once I've chosen the file, hoe do I then open it to be > > > > displayed? I tried using shell, but that only appears to work for > ..exes. > > > > Hope someone can throw some light in this direction. > > > > > > > > Thanks very much for any fothcoming help > > > > Ant > > > > > > > > > > > > His sample is probably the most complete sample you will find - as is most
of his stuff. -- Show quoteHide quoteChris Hanscom - Microsoft MVP (VB) Veign's Resource Center http://www.veign.com/vrc_main.asp -- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ "Ant" <A**@discussions.microsoft.com> wrote in message news:F1BCD368-E2DE-4F04-A4E1-283057516985@microsoft.com... > No sorry, I didn't see the link. Having a look now. > Cheers > Ant > > "Veign" wrote: > > > Did you try the sample provided by the link by Randy? > > > > -- > > Chris Hanscom - Microsoft MVP (VB) > > Veign's Resource Center > > http://www.veign.com/vrc_main.asp > > -- > > Read. Decide. Sign the petition to Microsoft. > > http://classicvb.org/petition/ > > > > > > "Ant" <A**@discussions.microsoft.com> wrote in message > > news:95DE94D5-ECB9-44D0-996B-FD983ECABA71@microsoft.com... > > > Hi, > > > Thanks for the response. How do I use the ShellExecute API? What is an > > API? > > > Is it something I reference? If you can give me a brief example it would > > be > > > most helpful. I found it in MSDN, but simply typing ShellExecute with the > > > apporpriate arguments threw up an error. > > > Thanks very much for your time > > > Ant > > > > > > > > > > > > "Veign" wrote: > > > > > > > Look up the ShellExecute API. > > > > > > > > -- > > > > Chris Hanscom - Microsoft MVP (VB) > > > > Veign's Resource Center > > > > http://www.veign.com/vrc_main.asp > > > > -- > > > > Read. Decide. Sign the petition to Microsoft. > > > > http://classicvb.org/petition/ > > > > > > > > > > > > "Ant" <A**@discussions.microsoft.com> wrote in message > > > > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com... > > > > > Hi, > > > > > I'm using the common dialog control to open PDF & text files. They > > don't > > > > > need to be embedded into forms or anything, simply opened from the > > > > > application. Once I've chosen the file, hoe do I then open it to be > > > > > displayed? I tried using shell, but that only appears to work for > > ..exes. > > > > > Hope someone can throw some light in this direction. > > > > > > > > > > Thanks very much for any fothcoming help > > > > > Ant > > > > > > > > > > > > > > > > > > Great. That did it. thank you!
Ant Show quoteHide quote "Veign" wrote: > His sample is probably the most complete sample you will find - as is most > of his stuff. > > -- > Chris Hanscom - Microsoft MVP (VB) > Veign's Resource Center > http://www.veign.com/vrc_main.asp > -- > Read. Decide. Sign the petition to Microsoft. > http://classicvb.org/petition/ > > > "Ant" <A**@discussions.microsoft.com> wrote in message > news:F1BCD368-E2DE-4F04-A4E1-283057516985@microsoft.com... > > No sorry, I didn't see the link. Having a look now. > > Cheers > > Ant > > > > "Veign" wrote: > > > > > Did you try the sample provided by the link by Randy? > > > > > > -- > > > Chris Hanscom - Microsoft MVP (VB) > > > Veign's Resource Center > > > http://www.veign.com/vrc_main.asp > > > -- > > > Read. Decide. Sign the petition to Microsoft. > > > http://classicvb.org/petition/ > > > > > > > > > "Ant" <A**@discussions.microsoft.com> wrote in message > > > news:95DE94D5-ECB9-44D0-996B-FD983ECABA71@microsoft.com... > > > > Hi, > > > > Thanks for the response. How do I use the ShellExecute API? What is an > > > API? > > > > Is it something I reference? If you can give me a brief example it > would > > > be > > > > most helpful. I found it in MSDN, but simply typing ShellExecute with > the > > > > apporpriate arguments threw up an error. > > > > Thanks very much for your time > > > > Ant > > > > > > > > > > > > > > > > "Veign" wrote: > > > > > > > > > Look up the ShellExecute API. > > > > > > > > > > -- > > > > > Chris Hanscom - Microsoft MVP (VB) > > > > > Veign's Resource Center > > > > > http://www.veign.com/vrc_main.asp > > > > > -- > > > > > Read. Decide. Sign the petition to Microsoft. > > > > > http://classicvb.org/petition/ > > > > > > > > > > > > > > > "Ant" <A**@discussions.microsoft.com> wrote in message > > > > > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com... > > > > > > Hi, > > > > > > I'm using the common dialog control to open PDF & text files. They > > > don't > > > > > > need to be embedded into forms or anything, simply opened from the > > > > > > application. Once I've chosen the file, hoe do I then open it to > be > > > > > > displayed? I tried using shell, but that only appears to work for > > > ..exes. > > > > > > Hope someone can throw some light in this direction. > > > > > > > > > > > > Thanks very much for any fothcoming help > > > > > > Ant > > > > > > > > > > > > > > > > > > > > > > > > > > > The ShellExecute API -- see
http://vbnet.mvps.org/code/shell/shellexecute.htm -- Show quoteHide quoteRandy Birch MS MVP Visual Basic http://vbnet.mvps.org/ ---------------------------------------------------------------------------- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ ---------------------------------------------------------------------------- "Ant" <A**@discussions.microsoft.com> wrote in message news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com... : Hi, : I'm using the common dialog control to open PDF & text files. They don't : need to be embedded into forms or anything, simply opened from the : application. Once I've chosen the file, hoe do I then open it to be : displayed? I tried using shell, but that only appears to work for .exes. : Hope someone can throw some light in this direction. : : Thanks very much for any fothcoming help : Ant Thanks Randy for that great sample. It's all working now.
Cheers Ant Show quoteHide quote "Randy Birch" wrote: > The ShellExecute API -- see > http://vbnet.mvps.org/code/shell/shellexecute.htm > > -- > > Randy Birch > MS MVP Visual Basic > http://vbnet.mvps.org/ > ---------------------------------------------------------------------------- > Read. Decide. Sign the petition to Microsoft. > http://classicvb.org/petition/ > ---------------------------------------------------------------------------- > > > > "Ant" <A**@discussions.microsoft.com> wrote in message > news:8F4E5414-38EC-4E38-B8D3-713DEAB334A5@microsoft.com... > : Hi, > : I'm using the common dialog control to open PDF & text files. They don't > : need to be embedded into forms or anything, simply opened from the > : application. Once I've chosen the file, hoe do I then open it to be > : displayed? I tried using shell, but that only appears to work for .exes. > : Hope someone can throw some light in this direction. > : > : Thanks very much for any fothcoming help > : Ant > >
Using "Include" Approach for Repetitive Code...
Draw line on picture; change width Setting Label zorder above picture control Search box at bottom of screen Control with previous focus loop help with passing values from an aspx page? Duplicate forms Working application - Now generates error Windows Media Player 9 or 10 Playlist in visual basic 6 |
|||||||||||||||||||||||