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
Vishal Deb
NA
2
3.3k
How to know dynamically created chekboxes is selected or not
May 8 2013 9:40 AM
Hi All
I am trying to generated the dynamic labels depending on the checked checkboxes which are dynamically created.
My .Net frame is 3.5
Here is code for dynamic checkboxes
System.Windows.Forms.CheckBox[] checkBox = new System.Windows.Forms.CheckBox[bran_count];
for (int i = 0; i < bran_count; ++i)
{
checkBox[i] = new CheckBox();
checkBox[i].Name = "radio" + Convert.ToString(i);
checkBox[i].Text = ds2.Tables[0].Rows[i][2].ToString();
checkBox[i].Location = new System.Drawing.Point(125 * i, 15);
groupBox1.Controls.Add(checkBox[i]);
checkBox[i].CheckStateChanged += new System.EventHandler(CheckBoxCheckedChanged);
}
}
private void CheckBoxCheckedChanged(object sender, EventArgs e)
{
//MessageBox.Show();
}
Any guidance is welcome, if possible give some code snippet.
Regards
Reply
Answers (
1
)
Windows registeries
display multi locations in google maps within a windows appl