G
Guest
I have one WinForm and 3 buttons on this form.
all buttons are private.
I set the button2's click event to execute the
"Controls.RemoveByKey("button1");".
When I executed the button2's click event, the button1 doesn't exist in
Controls.
My problem is if I want to add button1 into Controls at runtime, but I just
know that button1's name, How to use that name to search and add the button1
to Controls?
*button1's name is "button1".
all buttons are private.
I set the button2's click event to execute the
"Controls.RemoveByKey("button1");".
When I executed the button2's click event, the button1 doesn't exist in
Controls.
My problem is if I want to add button1 into Controls at runtime, but I just
know that button1's name, How to use that name to search and add the button1
to Controls?
*button1's name is "button1".