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
Daniel Golan
NA
45
47.6k
Splitting values in a combobox
Jan 30 2011 3:35 AM
Hello,
How can i split items in a combobox ?
using the code to populate the combo and wondering how i could modify the code to split the added item at "T" since i only need the first part of the attribute :
private void populateCombo_dato()
{
cmb_dato.Items.Clear();
//åpner xml
XDocument xmlDoc = XDocument.Load(lab_url.Text);
//leser attributt fra bestemt setd
var xmlAtt = from att in xmlDoc.Elements("weatherdata").Elements("forecast").Elements("tabular").Elements("time").Attributes("from")
select att;
//loop og legg de i listen om de ikke finnes
foreach (var record in xmlAtt)
{
if (!cmb_dato.Items.Contains(record.Value)) ;
cmb_dato.Items.Add(record.Value);
}
}
Reply
Answers (
6
)
C# - Graphics on custom panel control is distorted (smeared) when auto scrolled
Serial Key Validation in c#