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
Sam M
NA
5
9.1k
Retrieve all pictureboxes?
Dec 14 2010 11:48 AM
Hi guys, new to the forum :)
I have a c# program that consists of only one form, and am looking for a way of retrieving an array or list of all the picture boxes in that form.
I am not really new to c# but have only increased my knowledge so far as to accommodate assignment work requirements, i have not 'learnt' the language per se.
I blundered in and attempted to use this.componants only to find that, visual studio (which is what i am using) informed me there was no object reference in that statement, by which i assume it means the form, but i'm obviously not sure ;)
Ideally it would be some form of 'foreach' however i would appreciate guidance onto any method :D
Anyone have any ideas how i would go about doing this? Or is it even possible?
Thankyou.
Reply
Answers (
6
)
return types
creating a form but i think there something wrong with the array?