Here's the deal I'm relatively new to C# and i got this windows form that i would like to use to edit the data in an XML file. I can use XMLRead and make a tree view that works.. but how do I get let's say the value in <owner> to show up in to the textbox so it can be entered if it is a new datafile or editited if its an old one.
I got the loading of the XML file working... tested it with the tree view.
<document>
<surface>
<owners>
<owner id="1">Sum dum guy</owner>
<address>1070 0 West Addison Chicago, Il</address>
</owners>
</surface>
</document>
the problem could also be in how I am trying to load the data into the textbox it's self. I tried to copy the node.value to string tOwner. and then use that variable later on down inthe code to be the text int he text box...
private void InitializeCompo nent()
{
.... stuff .....
this.textOwner. Location = new System.Drawing. Point(511,50);
this.textOwner. Name="textOwner ";
this.textOwner. Size = "new System.Drawing. Size(100, 20);
this.textOwner. TabIndex = 3;
this.textOwner. Text = txtOwner;
.... more stuff .....
}
I got the loading of the XML file working... tested it with the tree view.
<document>
<surface>
<owners>
<owner id="1">Sum dum guy</owner>
<address>1070 0 West Addison Chicago, Il</address>
</owners>
</surface>
</document>
the problem could also be in how I am trying to load the data into the textbox it's self. I tried to copy the node.value to string tOwner. and then use that variable later on down inthe code to be the text int he text box...
private void InitializeCompo nent()
{
.... stuff .....
this.textOwner. Location = new System.Drawing. Point(511,50);
this.textOwner. Name="textOwner ";
this.textOwner. Size = "new System.Drawing. Size(100, 20);
this.textOwner. TabIndex = 3;
this.textOwner. Text = txtOwner;
.... more stuff .....
}
Comment