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
Bjorn Idar Kristiansen
NA
3
0
Loop through number of CheckBoxes
Jun 14 2011 5:54 AM
Hi!
I'm coding an alarmserver where I have 5(colls) x X(rows) of CheckBoxes; like this
X X X X X
X X X X X
...
These boxes gets Checked in runtime, which meens that I have to see if any box is Checked continously.
So far I've made a code that creates a List when the page Alarms is opened, where all CheckBox items are added to the list.
void Alarminnstillinger_Opened(System.Object sender, System.EventArgs e)
{
// Oppretter liste for å holde på alle CheckBox'er
List<CheckBox> s = new List<CheckBox>();
// Legger 100 CheckBox'er i List
for(int i = 1; i <=100; i++)
{
s.Add(CheckBox(i));
}
}
This code is inside a function
Alarminnstillinger_Opened
, how can I use s.CheckedChanged outside this function so that when the user checks a CheckBox a function is called?
Reply
Answers (
2
)
code for comparing two .xls files(excel documents) in c sharp .net
New to OOPs so need help here plzz