
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"
HTH
--
Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no rights.
Quote:
> 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