{//打开文件对话框
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){}
}