Hi,
I have an xml file with x items.
i want to display it all in text buttons?
how can i do this
using c# 4.0
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Mahesh ChandRank #1 · 393.3K reputationPosted Mar 28, 2011, 6:18 PM EDT
Reading and Writing XML in C#
In this article, you can learn how to read an XML file. You can read a node from XML (value or attribute) and once you get the value in string, you can set Text property of a TextBox.
joao carlos16 reputationPosted Apr 2, 2011, 6:08 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 3, 2011, 1:34 AM EDT
XML .NET
If that does not help then please clarify what it is that you need help with.
VulpesRank #55 · 29.2K reputationPosted Apr 3, 2011, 8:33 AM EDT
However, my second post on this thread (http://www.c-sharpcorner.com/Forums/Thread/115470/struggling-to-find-a-suitbale-way.aspx) shows how to read an XML file using LINQ and assign the various items to properties of custom classes.
It's then just a matter of assigning these properties (suitably converted) to the properties of the controls on the form.
Sam HobbsRank #107 · 20.5K reputationPosted Apr 3, 2011, 9:20 AM EDT