Home > Net >  Help: c # more child form how public main events of the form
Help: c # more child form how public main events of the form

Time:09-27

A form is given priority to, formA
Several form, formB formC, formD, etc.,
A serial port communication receiving method in formA serialPort_DataReceived,
Want to let the other children form are using this method, and the data and feedback to form,
This approach can achieve? How to implement? Have a case?

CodePudding user response:

Trigger events, serialPort_DataReceived, throw to the data, the Form to subscribe

CodePudding user response:

# 1 is the solution, is to subscribe to news
  •  Tags:  
  • C#
  • Related