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"?>
    <Element Name="NewYork" Value="" />
    <Element Name="LA" Value="" />
    <Element Name="Boston" Value="" />

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
Visual Basic.NETXML

Avatar of undefined
Last Comment

8/22/2022 - Mon