troubleshooting Question

VB.net populate combobox from xml file

Avatar of David Modugno
David Modugno asked on
XMLVisual Basic.NET
4 Comments1 Solution121 ViewsLast Modified:
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>

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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros