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
Naredla Nithesh
NA
328
78.9k
how to reset user control to its initial state
May 4 2014 10:11 AM
Hai friends...
In my application.. i have a user control,when i am clicking on the add button of my application..it should create a object to the user control,and the created user control copy should be added to a panel control... i did all this...but what my problem is along with add button ..i have a
reset button
..when i am clicking on this button it should
reset all the user control that are added to the panel
....How can i do this......any one have an idea..please help me
and my reset code is
foreach (Control x in bodyPanel.Controls)
{
if (x is TimerUserControl)
{
obj_TimerUserControl.ResetControl();
}
}
when i execute this the last created object only get reset....remaining all are running as usual....in this code snippet Resetcontrol() is a method which is declared in TimerUserControl.
please help me.Thank you.
Reply
Answers (
3
)
Unable to Update in C# Access 2003
How to get DataGridview selected Object