using System.Diagnostics;
System.Diagnostics.Process.Start("notepad.exe");

解决方案 »

  1.   

    System.Diagnostics.Process.Start("notepad.exe","你的文件名");
      

  2.   

    System.Diagnostics.Process.Start("notepad.exe","c:\\ky.txt");如果想加参数,如下
    Process proc = new Process(); 
    proc.StartInfo.FileName = yourfilename;
    proc.StartInfo.Arguments =  yourparameters; 
    proc.Start();
      

  3.   

    或者最简单:
    //导出完毕,显示出来记事本
    if(File.Exists(this.textBox1.Text))
    {
    System.Diagnostics.Process.Start(this.textBox1.Text);
    }
      

  4.   

    using System.Diagnostics;
    //打开记事本
    System.Diagnostics.Process.Start("notepad.exe");
    //打开文本文件
    System.Diagnostics.Process.Start("文本文件");
      

  5.   

    Process p = new Process()
    p.StartInfo.FileName = "..."
    p.StartInfo.CreatNoWindow = true;
    p.Start();
      

  6.   

    System.Diagnostics.Process.Start("notepad.exe");