Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i access button in one form in another form.

Example: button add is a member of form 1 and i wanna to access it in form 2 how can i do this form 2can be parent form.

thank u

Please show me necessary steps
Posted

1 solution

The easy way is to make the button in form 1 public, and then either pass form 1 as a parameter to form 2, or set form 2's Parent property to form 1.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900