Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Reply
how to reset user control to its initial state
Naredla Nithesh
10 years ago
1.9k
Reply
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.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Unable to Update in C# Access 2003
How to get DataGridview selected Object