Any one know how to open text file ?
I have this codes in my form:
private void Open_Click(object sender, System.EventArgs e)
{
OpenFileDialog openFileDialog=new OpenFileDialog();
openFileDialog.Filter="Text(*.txt)|*.txt|Doc(*.doc)|*.doc " ;
openFileDialog.ShowDialog();
}
But this only reveal the open file dialog, when my menu item called Open is clicked..
How do I actually make the content of the selected file goes into one of my control, which is a RichTextBox..
I am just a beginner in C#, migrating from Java. Thanks
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

andrewRank #6,347 · 269 reputationPosted Feb 23, 2004, 5:35 AM EST