how can i open the Open with window from my vb program 
Author Message
 how can i open the Open with window from my vb program

Hie, Try this:

Public Sub DisplayOpenWith(strFile As String)
    On Error Resume Next
    Shell "rundll32.exe shell32.dll, OpenAs_RunDLL " & strFile
End Sub

Use it by passing the file name e.g.:
DisplayOpenWith "C:\FileWithNoDefaultApplication.agx"

Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no rights.

> hii all

> i want to use the "open with" in my vb programme

> i have a files names every one has its application that can open it but i
> want to open the file using an application that the user choose , i hope
> that u can help me

> thanks

Sat, 22 Oct 2005 21:32:12 GMT  
 [ 1 post ] 

 Relevant Pages 

1. _how to open a file with associated windows program from within VB

2. Opening a File Open window for file selection in VBA

3. Opening new document without a new window opening

4. Using Window.Open to open HTML page

5. 'Canned' data in VB program

6. Can't open program window using automation

7. VB6 program opens in too small non scrollable window

8. Doubleclick a file in Windows Explorer, start my program opening that file

9. Trouble Opening a Word Document with VB.NET,Open member not found in Documents

10. open a data file with the VB open statement problem

11. Killing the background vb program after opening the outlook form

12. Outlook stays open after VB program termintates - resolved


Powered by phpBB® Forum Software