Call a button on a C# form through usercontrol

后端 未结 4 2158
广开言路
广开言路 2021-01-23 18:37

I\'ve created a user control with some buttons. When you click a button in the UserControl the BackColor of the button changes:

 private void button1(object send         


        
4条回答
  •  礼貌的吻别
    2021-01-23 18:51

    you can use Event Aggregator and make the button in user control will publish an event and make you window handle the event

提交回复
热议问题