copy from a xml file into text boxes on a windows form

  • Thread starter Thread starter Eranga
  • Start date Start date
E

Eranga

Hi all,
I want to copy data stored in a xml file in to text boxes on a windows
form. I know that this is possible with a datagrid. But I don't know
whether it is possible or if so how to do it with a text box.
Please help me.
Thanks in advance.
 
I want to copy data stored in a xml file in to text boxes on a windows

StreamReader sr = new StreamReader(
new FileStream(@"c:\test.xml", FileMode.Open, FileAccess.Read));
textBox1.Text = sr.ReadToEnd();
sr.Close();

Greetings,
Wessel
 
Back
Top