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
Liam Stevens
NA
7
2.1k
How to loop through controls(different).
Aug 24 2011 7:04 AM
Hi, I need to loop through a bunch of picture boxes that I have, all with names such as:
PictureBox00, PictureBox01, PictureBox02 etc.
I need to loop through these and adjust their values by what the current value in the loop is, I basically want to do this to it:
C# Syntax (
Toggle Plain Text
)
for (int i = 0; i < 3; i++)
{
PictureBox(i).enabled = false;
}
I need to access them like an array, I will not know what picturebox I would be dealing with at that time, only way I can see to do this is by using the loop, cheers.
EDIT: I think this was pretty easy to do in VB.NET via DirectCast, not sure if that would be used here(the similar version).
Reply
Answers (
8
)
How to display column chart in group of y-axis format on pdf using itextsharp
Get c# code