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
Deena eliz
NA
50
19.7k
how to increase value on hashtable?
May 8 2015 1:05 AM
Hashtable HT = new Hashtable();
private void button1_Click(object sender, EventArgs e)
{
int val = 0;
HT.Add(textBox1.Text,val);
HT.Add(textBox2.Text, val);
HT.Add(textBox3.Text, val);
HT.Add(textBox4.Text, val);
}
here am storing textboxes data into hashtable like textbox data as key and val 0 as value..
now am entering new data into another textbox (textbox5). this new data should compare all other data in hashtable. if suppose the hashtable contain the same data means the value should be increase
private void button2_Click_1(object sender, EventArgs e)
{
if (HT.ContainsKey(textBox5.Text))
{
// select the particular key and increse that value
}
so here how to select the particular key and increase the value of that only..
please anybody help me..
Thanks in advance..
Attachment:
globaldata.rar
Reply
Answers (
1
)
Inserting data into ms access database 2007 from visual stud
load xml file node in datatable