Thursday, June 13, 2019

Fransiskus Sutris

How To Display XML File in Combobox Using VB.net

How To Display XML File in Combobox Using VB.net


What is xml?

XML is a software- and hardware-independent tool for storing and transporting data.

What is XML?

  • XML stands for eXtensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to store and transport data
  • XML was designed to be self-descriptive
  • XML is a W3C Recommendation
want to read more about xml ? Go Here>>
Source : https://www.w3schools.com/xml/xml_whatis.asp
Now i want focus on how to display data from XML file in combobox.

  • Open your text editor (like sublimeText or notepad)
Type the following xml content, then save with file name : category.xml
On my computer i save category.xml on the following place >> D:\category.xml

  • Open your Vb.net
On form1 design put one ComboBox, name it ComboBox1, see picture below:

  • Double click on form area and then type the following code in Form1_Load:
  • Run the project and look at the combobox, it will be filled with category data from the category.xml file

Thank you, hopefully useful.

#Loading xml value into combobox

Fransiskus Sutris

About Fransiskus Sutris -

Halo, perkenalkan saya Fransiskus Sutris. Saya berbagi tips and trik di blog saya ini dan semoga apa yang saya bagi disini bisa bermanfaat bagi anda yang membacanya.

Subscribe to this Blog via Email :