登录
首页 » Visual Basic » CommTest485

CommTest485

于 2015-07-23 发布 文件大小:19KB
0 180
下载积分: 1 下载次数: 1

代码说明:

  测试com口程序Private Sub Form_Load() Dim I As Integer Dim Msg As String Me.Enabled = False Msg = 串行端口通讯测试 V & App.Major & . & App.Minor & App.Revision cboCommSettings.Text = GetSetting(App.EXEName, frmCommTest , CommSettings , 2400,N,8,1 ) Me.Show Me.Refresh With MSComm1 For I = 1 To 16 Me.Caption = Msg & - 测试通讯端口:COM & I & ... Me.Refresh Delay 100 On Error Resume Next .CommPort = I .Settings = 2400,N,8,1 .PortOpen = True .PortOpen = False If Err = 0 Then cboCommPort.AddItem COM & Trim(I) Next I End With cboCommPort.ListIndex = 0 optCommData(0).Value = True Me.Caption = Msg & (Programming by WJY) Me.Refresh If cboCommPort.ListCount = 0 Then MsgBox 程序检测不到可用的串行端口! Me.Enabled = True End Sub (test com port)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • tmctdh
    透明窗体动画 vb写的,很好的一个例子(Transparent form animation vb write, a good example)
    2012-12-03 17:34:50下载
    积分:1
  • CDDoor
    实现打开和关闭光驱功能,调用API实现,实现打开和关闭光驱功能,调用API实现(To achieve open and close the CD-ROM features, API calls, achieving open and close the CD-ROM features, API calls to achieve)
    2013-09-15 19:57:57下载
    积分:1
  • 457876875
    VB生成颜色分量的单色图像,有需要的就下载吧。(VB generate monochromatic color component images, there is a need to download it.)
    2013-08-20 18:43:02下载
    积分:1
  • 软件注册窗口切换
    软件注册窗口切换,VB6.0 源码,学习中……学习中……学习中……学习中……学习中……(Software Registration Window Switching)
    2020-06-23 16:40:01下载
    积分:1
  • ELIZA_SDK
    this is a implementation of a eliza a specialist system ps. experimental only
    2009-06-13 23:46:10下载
    积分:1
  • liujiaopei
    MFC窗体程序,计算机图形学,在视窗中显示文字并可以移动。(MFC form, computer graphics, display text in a window and can be moved.)
    2014-01-02 22:47:46下载
    积分:1
  • Point
    window编程中,指针结构体函数,很实用。(programming window, the pointer structure functions, very practical.)
    2013-09-20 23:22:12下载
    积分:1
  • jiaowu
    MFC实现的一个简单的教务管理系统, 数据库使用的是access数据库(a simple system use MFC)
    2015-04-15 15:06:38下载
    积分:1
  • OScode
    操作系统实验的代码以及说明包括各种经典的问题(Operating system code, as well as experiments that include a variety of classic problem)
    2009-06-21 10:33:54下载
    积分:1
  • PGMA_2.1
    这是一个ICC推出的两个标准色域映射算法的程序代码(This is a launch of two standard ICC color gamut mapping algorithm code)
    2011-06-30 19:14:04下载
    积分:1
  • 696518资源总数
  • 105721会员总数
  • 0今日下载