Hi all,
I have figured out the problem. I just needed to put the following code in the frmMain_Load event. Here is the code that works.
Code:
private void frmMain_Load(object sender, EventArgs e)
{
DataSet dsFeeds = new DataSet();
dsFeeds.ReadXml("Feeds.xml", XmlReadMode.InferSchema);
cboFeeds.DataSource = dsFeeds.Tables["Feed"];
cboFeeds.DisplayMember = "feedName";
cboFeeds.ValueMember = "feedLocation";
}
And here is how the XML file is laid out.
Code:
<?xml version="1.0"?>
<Feeds>
<Feed>
<feedName></feedName>
<feedLocation></feedLocation>
</Feed>
<Feed>
<feedName></feedName>
<feedLocation></feedLocation>
</Feed>
</Feeds>
I tested it and it works. Sweetness. Thank you all for your help.
Thanks
Chris