'Private WithEvents串行使用 [英] 'Private WithEvents Serial Usage

查看:89
本文介绍了'Private WithEvents串行使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Private WithEvents SerialInput As New System.IO.Ports.SerialPort(SerialPortInUse)





一旦我选择了变量SerialPortInUse,我想执行这段代码,我希望在收到数据时做出响应。怎么可以这样做?



I would like to execute this piece of code once I have chosen the variable SerialPortInUse, I wish to then like to respond when data has been received. How could this be done?

推荐答案

这篇关于'Private WithEvents串行使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆