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
Alper
NA
3
0
Visual C#.Net EventHandler Problem
Apr 21 2007 11:00 AM
Hi,i want to use pictureboxes in different eventhandler. Here are my codes:
private void buttonclick(object sender,EventArgs e) {
int i;
Form newform=new Form(); //creating form2
for (i=0;i<7;i++) { // loop that creates 6 picturebox
Picturebox newpicturebox=new picturebox(); //creating picturebox
newpicturebox.Name="picturebox"+i; //defining name
form2.controls.add(newpicturebox); //adding controls in form2
}
Timer newtimer=new Timer(); //creating timer to conrol pictureboxes that i defined in for loop
newtimer.interval=1000; //setting timer interval
newtimer.Tick+=new EventHandler(newtimer_Tick);//seting Timer's Eventhander
I want to control pictureboxes that i defined in for loop via newtimer_tick. How can i do this?
Reply
Answers (
2
)
How can i open Gmail Drive from my code...plz help...its urgent...
Stuck with structs