Window "Open With"

  • Thread starter Thread starter Andres
  • Start date Start date
A

Andres

Does anyone now how to call to the "Open With" Window
(i mean is the window that appears after u make a right
click to a file and u select "Open With")

Thanks.
 
* "Andres said:
Does anyone now how to call to the "Open With" Window
(i mean is the window that appears after u make a right
click to a file and u select "Open With")

P/Invoke, seems to be undocumented:

\\\
Private Declare Function OpenWithDialog Lib "shell32.dll" Alias
"OpenAs_RunDLL" ( _
ByVal hWndOwner As IntPtr, _
ByVal dwUnknown1 As Int32, _
ByVal strFileName As String, _
ByVal dwUnknown2 As Int32 _
) As Int32

Private Sub Button1_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs _
) Handles Button1.Click
OpenWithDialog(Me.Handle, 0, "C:\AUTOEXEC.BAT", 0)
End Sub
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Improve your quoting style:
<http://learn.to/quote>
<http://www.plig.net/nnq/nquote.html>
 
Back
Top