本文介绍了在串口上的同一项目的两个Winform中接收数据(比如COM1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个名为mainWindow的基于C#的项目。这个项目还有一个名为secondWindow的winform。我在mainWindow中添加了串口,我希望使用此串口接收winforms(mainWindow和secondWindow)上的数据,但是无法访问secondWindow串口。我该怎么办?请有人帮助我。
I have created one C# based project named as mainWindow. This project has one more winform named as secondWindow. I have added serial port in mainWindow and I want to receive data on both winforms (mainWindow & secondWindow) using this serial port, but on secondWindow serial port is not accessible. How should I proceed? Please somebody help me.
推荐答案
这篇关于在串口上的同一项目的两个Winform中接收数据(比如COM1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!