Alvo,
Once you get the name of the file from the file dialog, you will want to
use the StreamReader class to read the contents of the file into a string
(through the methods on the StreamReader, most notably, ReadToEnd). Once
you do that, you can set the Text property of the textbox to the string and
the contents will be in there.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Alvo von Cossel I" <Al************@discussions.microsoft.com> wrote in
message news:23**********************************@microsof t.com...
hi,
i have an openfiledialog and a multiline textbox. i want to be able to
open
text documents in it. can you please give me the c# code to do this?
by the way, the textbox is called textBox1 and the openfiledialog is
called
openFileDialog1
--
Alvo von Cossel I of Germany