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
PK Singh
NA
165
14.3k
how can we one line loop use ?? example counter use 1 to .... how
Apr 3 2021 12:27 PM
int counter = 0;
for (int i = 0, loopTo = checkedListBox1.Items.Count - 1; i <= loopTo; i++)
{
if (Conversions.ToBoolean(checkedListBox1.GetItemCheckState(i)))
{
counter = counter + 1;
}
}
if (counter != 1 )
if (counter != 2)
if (counter != 3)
if (counter != 4)
if (counter != 5)
if (counter != 6)
if (counter != 7)
if (counter != 8)
if (counter != 9)
if (counter != 10 )
{
Interaction.MsgBox("Select all Months!!!!!!!!!");
return ;
}
how can we one line loop use counter ??
example counter use 1 to ....
how pls tell
Reply
Answers (
2
)
Send Email in Cofoundry.
How to save table's multiple rows in database