首页  编辑  

打开Windows运行程序对话框

Tags: /C#/API调用/   Date Created:

using System . Runtime . InteropServices;

[ DllImport ( "shell32.dll" , EntryPoint = "#61" )]

private static extern int SHRunDialog( IntPtr hOwner, int Unknown1, int Unknown2,

    string szTitle, string szPrompt, int uFlags);

private void button1_Click( object sender , EventArgs e)

{

   SHRundialog(Handle, 0 , 0 , null , null , 2 );

}