就是当找不到合适的程序打开一个文件时,
会弹出  应用程序选择 对话框

解决方案 »

  1.   

    OpenFileDialog ?OpenFileDialog openFileDialog=new OpenFileDialog();
    openFileDialog.InitialDirectory="c:\\";//注意这里写路径时要用c:\\而不是c:\
    openFileDialog.Filter="文本文件|*.*|C#文件|*.cs|所有文件|*.*";
    openFileDialog.RestoreDirectory=true;
    openFileDialog.FilterIndex=1;
    if (openFileDialog.ShowDialog()==DialogResult.OK)
    {
    }
      

  2.   

                ProcessStartInfo info = new ProcessStartInfo("e:\\projects\\test.nsi");
                info.UseShellExecute = true;
                Process.Start(info);
      

  3.   

    http://topic.csdn.net/u/20090710/21/e7d57fc8-bf89-4e1e-890f-ee6b76360f66.html