{//打开文件对话框
    this.openFileDialog1.Filter="*.txt|*.txt|所有文件(*.*)|*.*";
    if(this.openFileDialog1.ShowDialog()==DialogResult.OK)
    {
     try
     {
      string Name=this.openFileDialog1.FileName;  
      richTextBox1.LoadFile(Name,RichTextBoxStreamType.PlainText);
      this.statusBarPanel1.Text=Name;
     
     }
     catch(Exception){}
    }

相关文章:

  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-01-27
  • 2022-01-20
  • 2022-12-23
相关资源
相似解决方案