Home > Net >  How in the c # programming in a child form by pressing a button to invoke the parent form button eve
How in the c # programming in a child form by pressing a button to invoke the parent form button eve

Time:09-17

Such as a button click the child window, run the parent window of the existing button,
Parent window button has been changed to the public

CodePudding user response:

Can try to use delegate

CodePudding user response:

The simplest is to form1 button and extracted as a static Test method,
The
and call form1 form2
Can also use commission,

CodePudding user response:

Child window to define a button event, after the parent form subscription can trigger in the child window
  •  Tags:  
  • C#
  • Related