TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
albert albert
NA
524
0
xml WITH listbox
Sep 3 2013 6:11 AM
HI Everybody,
I have this:
private void btnConnectionStrings_Click(object sender, EventArgs e)
{
//if(File.Exists(@"C:\Users\IllesIuliu\Documents\Visual Studio 2010\Projects\WindowsFormsApplication18\GetSelectedID\XML\Configurations.xml"))
XmlDocument docHallo = new XmlDocument();
docHallo.Load(@"C:/Users/IllesIuliu/Documents/Visual Studio 2010/Projects/WindowsFormsApplication18/GetSelectedID/XML/Configurations.xml");
XmlNodeList nodeList = docHallo.GetElementsByTagName("SupplyXMLConnectionString");
//var items = (from i in .Descendants("item")
// select new { Item = i.Element("SEL").Value, Value = i.Element("VALUE").Value }).ToList();
//listBox1.DataSource = items;
//listBox1.DisplayMember = "Item";
//listBox1.ValueMember = "Value";
foreach (XmlNode node in nodeList)
{
listBox1.Items.Add(node);
//listBox1.SelectedValue = node.ToString();
}
}
But as output I get this:system.xml.xmlElement
THX for helping
Reply
Answers (
2
)
Tree view, User Control, Split container
Load database with button