怎么用通用对话框打开文件?
private void openFileDialog_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
{
try
{
//我想通过openFileDialog在rtfTex中显示打开的文件,参 数怎么弄?
this.rtfText.LoadFile();
}
catch(System.IO.FileNotFoundException)
{
MessageBox.Show("No file to load yet");
}
}