Link to home
Start Free TrialLog in
Avatar of David Modugno
David Modugno

asked on

VB.net populate combobox from xml file

i have a vb.net windows forms application.  I want to read in an xml file and populate a combo box
Here is the an example of what will be in the xml file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Main>
  <SiteInfo>
    <Element Name="NewYork" Value="9.9.9.9" />
    <Element Name="LA" Value="2.2.2.2" />
    <Element Name="Boston" Value="3.3.3.3" />
  </SiteInfo>
</Main>

Open in new window


I want to read in the information from the xml file and have the Name be the text entry (what is displayed to the user) for a combo box and the value be the value of the combo box... for the life of me I cant figure it out

the comobox name = cmbSiteInfo

Thanks so much for the help
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of David Modugno
David Modugno

ASKER

Thank you... i will give that a try
Worked perfectly.. thank you
Glad to be of assistance...