devxlogo

ShowOpenWithDialog – Displaying and opening a file through the “Open with…” dialog

ShowOpenWithDialog – Displaying and opening a file through the “Open with…” dialog

' Display the "Open with..." dialog and open the specified file with the ' selected program' Example: ShowOpenWithDialog("d:	est.txt") Shared Function _    ShellExecute(ByVal hwnd As Integer, ByVal lpOperation As String, _    ByVal lpFile As String, ByVal lpParameters As String, _    ByVal lpDirectory As String, ByVal nShowCmd As Integer) As IntegerEnd FunctionSub ShowOpenWithDialog(ByVal filename As String)    ShellExecute(0, String.Empty, "RUNDLL32.EXE", "shell32.dll,OpenAs_RunDLL " _        & filename, "", 0)End Sub

See also  5 Strategies for Supercharging Your CRM
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist