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
AMOL
NA
17
13.9k
C# - How to Make the ComboBox ' Values Distinct (Unique) without using any database?
Sep 6 2012 1:47 PM
i have the following code with me- it populates all the values and i want the distinct one. please help me to resolve it.
THANKS IN ADVANCE....
foreach (string file in System.IO.Directory.GetFiles(a))
{
string asd = Path.GetFileNameWithoutExtension(file);
string[] str = asd.Split('_');
string sam1 = str[0];
string sam2 = str[1];
combo1.Items.Add(sam1);
combo2.Items.Add(sam2);
}
Reply
Answers (
2
)
.Net ThreadPool
file name taken in a textbox without extension and want to check that it already present in a specified directory. if exists want to display an error msg.. i have following code with me.