亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frmmain.frm

?? 基于VB的串口收發程序,希望給大家帶來幫助
?? FRM
?? 第 1 頁 / 共 2 頁
字號:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmMain 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Basic Communications"
   ClientHeight    =   1155
   ClientLeft      =   2370
   ClientTop       =   2925
   ClientWidth     =   8205
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1155
   ScaleWidth      =   8205
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton btnClear 
      Caption         =   "Clear"
      Height          =   285
      Index           =   2
      Left            =   7440
      TabIndex        =   7
      Top             =   480
      Width           =   615
   End
   Begin VB.CommandButton btnClear 
      Caption         =   "Clear"
      Height          =   285
      Index           =   1
      Left            =   7440
      TabIndex        =   6
      Top             =   120
      Width           =   615
   End
   Begin VB.TextBox txtResponse 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   960
      Locked          =   -1  'True
      ScrollBars      =   1  'Horizontal
      TabIndex        =   4
      Top             =   480
      Width           =   5655
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   6720
      Top             =   720
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      DTREnable       =   0   'False
      ParityReplace   =   65
      RThreshold      =   1
   End
   Begin VB.CommandButton btnSend 
      Caption         =   "Send"
      Height          =   285
      Index           =   1
      Left            =   6720
      TabIndex        =   2
      Top             =   120
      Width           =   615
   End
   Begin VB.TextBox txtTextOut 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   960
      TabIndex        =   1
      Top             =   120
      Width           =   5655
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   255
      Left            =   0
      TabIndex        =   0
      Top             =   900
      Width           =   8205
      _ExtentX        =   14473
      _ExtentY        =   450
      ShowTips        =   0   'False
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   4
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   2117
            MinWidth        =   2117
            Text            =   "Connected"
            TextSave        =   "Connected"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   1270
            MinWidth        =   1270
            Text            =   "com1"
            TextSave        =   "com1"
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   2258
            MinWidth        =   2258
            Text            =   "9600 8N1"
            TextSave        =   "9600 8N1"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   1235
            MinWidth        =   1235
            Text            =   "ASCII"
            TextSave        =   "ASCII"
         EndProperty
      EndProperty
   End
   Begin VB.Label Label3 
      Caption         =   "Response:"
      Height          =   255
      Left            =   120
      TabIndex        =   5
      Top             =   480
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "Output:"
      Height          =   255
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   615
   End
   Begin VB.Menu mnuSettings 
      Caption         =   "&Settings"
      Begin VB.Menu mnuPort 
         Caption         =   "&Port"
         Begin VB.Menu mnuCom 
            Caption         =   "Com &1"
            Checked         =   -1  'True
            Index           =   1
         End
         Begin VB.Menu mnuCom 
            Caption         =   "Com &2"
            Index           =   2
         End
         Begin VB.Menu mnuCom 
            Caption         =   "Com &3"
            Index           =   3
         End
         Begin VB.Menu mnuCom 
            Caption         =   "Com &4"
            Index           =   4
         End
      End
      Begin VB.Menu mnuSpeed 
         Caption         =   "&Speed"
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "11&0"
            Index           =   0
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "&300"
            Index           =   1
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "&600"
            Index           =   2
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "&1,200"
            Index           =   3
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "&2,400"
            Index           =   4
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "&9,600"
            Checked         =   -1  'True
            Index           =   5
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "14,400"
            Index           =   6
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "19,200"
            Index           =   7
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "28,800"
            Index           =   8
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "3&8,400"
            Index           =   9
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "56,000"
            Index           =   10
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "128,000"
            Index           =   11
         End
         Begin VB.Menu mnuSpeedSel 
            Caption         =   "256,000"
            Index           =   12
         End
      End
      Begin VB.Menu mnuDataB 
         Caption         =   "&Data Bits"
         Begin VB.Menu mnuDataBSel 
            Caption         =   "&4"
            Index           =   4
         End
         Begin VB.Menu mnuDataBSel 
            Caption         =   "&5"
            Index           =   5
         End
         Begin VB.Menu mnuDataBSel 
            Caption         =   "&6"
            Index           =   6
         End
         Begin VB.Menu mnuDataBSel 
            Caption         =   "&7"
            Index           =   7
         End
         Begin VB.Menu mnuDataBSel 
            Caption         =   "&8"
            Checked         =   -1  'True
            Index           =   8
         End
      End
      Begin VB.Menu mnuParity 
         Caption         =   "&Parity"
         Begin VB.Menu mnuParitySel 
            Caption         =   "&Even"
            Index           =   0
         End
         Begin VB.Menu mnuParitySel 
            Caption         =   "&Mark"
            Index           =   1
         End
         Begin VB.Menu mnuParitySel 
            Caption         =   "&None"
            Checked         =   -1  'True
            Index           =   2
         End
         Begin VB.Menu mnuParitySel 
            Caption         =   "&Odd"
            Index           =   3
         End
         Begin VB.Menu mnuParitySel 
            Caption         =   "&Space"
            Index           =   4
         End
      End
      Begin VB.Menu mnuStop 
         Caption         =   "&Stop Bits"
         Begin VB.Menu mnuStopSel 
            Caption         =   "&1"
            Checked         =   -1  'True
            Index           =   0
         End
         Begin VB.Menu mnuStopSel 
            Caption         =   "1.&5"
            Index           =   1
         End
         Begin VB.Menu mnuStopSel 
            Caption         =   "&2"
            Index           =   2
         End
      End
   End
   Begin VB.Menu mnuView 
      Caption         =   "&View"
      Begin VB.Menu mnuViewSel 
         Caption         =   "&Ascii"
         Checked         =   -1  'True
         Index           =   0
      End
      Begin VB.Menu mnuViewSel 
         Caption         =   "&Hex"
         Index           =   1
      End
   End
   Begin VB.Menu mnuConnect 
      Caption         =   "&Connect"
   End
   Begin VB.Menu mnuHelp 
      Caption         =   "&Help"
      Begin VB.Menu mnuHelpSel 
         Caption         =   "&Basic Help"
         Index           =   0
      End
      Begin VB.Menu mnuHelpSel 
         Caption         =   "&About"
         Index           =   1
      End
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Basic communications module
'Written by: M. Adam Davis
'Modified by Malcom Kemp 3/12/00
'
'This program will allow for the precise sending and receiving of characters
'to a communication port on the PC.  You can sellect which port to use, and also
'select a bit rate speed for the port.  You must "connect" from the menu to
'open the port.  Then you can select to send either an ascii string, or a string
'of up to 12 hex characters.  The characters are sent when the appropriate
'send button is pushed.
'
'The recieve string will escape non-pritable characters with the <x[x]>
'convention where xx represents the hex value of the character.

Option Explicit
Dim OutputAscii As Boolean
Dim InputString As String
Dim OutputString As String

Private Sub btnClear_Click(Index As Integer)
    Dim i As Integer
    
    Select Case Index
        Case 1:
            txtTextOut = ""
            OutputString = ""
        Case 2:
            txtResponse = ""
            InputString = ""
    End Select
    
End Sub

Private Sub btnSend_Click(Index As Integer)
   
    Select Case Index
        Case 1                      ' Send ascii string
          send OutputString
    End Select
    
 End Sub
Sub send(txtin As String)
    
    If MSComm1.PortOpen = True Then
        MSComm1.Output = txtin
    End If
    
End Sub

Function HexChar(strData As String) As Integer

    Select Case strData
        Case "0" To "9"
            HexChar = Val(strData) - Val("0")
        Case "a", "A"
            HexChar = 10
        Case "b", "B"
            HexChar = 11
        Case "c", "C"
            HexChar = 12
        Case "d", "D"
            HexChar = 13
        Case "e", "E"
            HexChar = 14
        Case "f", "F"
            HexChar = 15
        Case Else
            HexChar = 0
    End Select

End Function

Private Sub Form_Load()
    Dim i As Integer

    OutputAscii = True

    For i = 1 To 2                  ' Clear all input/output fields
        btnClear_Click (i)
    Next i
    If Not ValidatePort Then
        MsgBox "There are no available comm ports on this computer.", , "Commx"
        End
    End If
    UpdateStatus
End Sub

Private Sub Form_Unload(Cancel As Integer)

    If (MSComm1.PortOpen) Then
        MSComm1.PortOpen = False
    End If
    
End Sub

Private Sub mnuCom_Click(Index As Integer)
    Dim i As Integer
    Dim OldPort As Long
    
    On Error Resume Next
    With MSComm1
        OldPort = .CommPort
        If MSComm1.PortOpen Then
            .PortOpen = False
            .CommPort = Index
            .PortOpen = True
            If Err.Number <> 0 Then     ' This should not happen...
                MsgBox "Com" & Index & " is not available." & _
                            vbCrLf & Err.Description
                Err.Clear
                .CommPort = OldPort
            Else
                For i = 1 To 4

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线视频免费观看| 欧美日本视频在线| 中文字幕va一区二区三区| 国产成人一级电影| 中文字幕+乱码+中文字幕一区| 成人ar影院免费观看视频| 中文字幕一区三区| 欧美私人免费视频| 日本伊人色综合网| 精品国产免费视频| 成人国产精品免费观看动漫| 亚洲精品亚洲人成人网 | 亚洲免费在线视频一区 二区| 99精品久久只有精品| 亚洲国产aⅴ天堂久久| 日韩一区二区精品| 成人深夜视频在线观看| 亚洲色欲色欲www| 欧美日韩国产bt| 国产麻豆91精品| 亚洲精品中文在线| 日韩一区二区三区免费看| 成人综合在线观看| 天堂av在线一区| 国产午夜精品一区二区| 一本大道久久精品懂色aⅴ| 午夜电影一区二区| 久久久久久久久久看片| 91黄视频在线| 国产毛片精品视频| 亚洲一二三区视频在线观看| 精品乱人伦一区二区三区| 99视频一区二区| 精品在线免费观看| 一区二区三区不卡视频| 久久久久高清精品| 欧美无砖专区一中文字| 国产91富婆露脸刺激对白| 亚洲va在线va天堂| 国产精品美女久久久久av爽李琼| 欧美日本国产一区| 91亚洲国产成人精品一区二区三| 老司机午夜精品99久久| 亚洲欧美视频在线观看| 久久亚洲欧美国产精品乐播| 欧美三级蜜桃2在线观看| 从欧美一区二区三区| 日韩国产精品久久久| 亚洲欧美电影院| 国产视频一区在线观看| 91精品久久久久久蜜臀| 在线一区二区三区四区五区| 国产99久久久国产精品潘金 | 亚洲日本免费电影| 久久色在线观看| 884aa四虎影成人精品一区| 91高清视频在线| 99久久综合狠狠综合久久| 国产精华液一区二区三区| 蜜桃视频一区二区| 日韩在线一二三区| 亚洲国产美女搞黄色| 亚洲欧美偷拍三级| 亚洲视频1区2区| ●精品国产综合乱码久久久久| 国产欧美一区二区精品性色| 亚洲精品一区二区三区蜜桃下载| 欧美一区二区高清| 制服丝袜av成人在线看| 欧美日韩高清在线| 成人免费在线视频| 欧美日韩高清一区二区三区| 91丨九色丨蝌蚪丨老版| av资源站一区| 成人网在线免费视频| 国产东北露脸精品视频| 国产美女精品人人做人人爽| 国产尤物一区二区| 狠狠色丁香九九婷婷综合五月| 奇米在线7777在线精品 | 欧美成人乱码一区二区三区| 91麻豆精品国产91久久久更新时间| 欧美日韩精品欧美日韩精品| 欧美三级在线播放| 91精品综合久久久久久| 91麻豆精品国产综合久久久久久 | 99re热这里只有精品视频| 成人激情小说网站| 97精品久久久久中文字幕| 一本一道综合狠狠老| 欧美日韩美女一区二区| 日韩一区欧美一区| 亚洲裸体在线观看| 亚洲综合成人网| 日韩成人伦理电影在线观看| 日本一道高清亚洲日美韩| 久久99久久久欧美国产| 国产成人免费在线观看| 色综合天天综合在线视频| 欧美无乱码久久久免费午夜一区 | 麻豆中文一区二区| 国产精品自拍av| www.亚洲在线| 欧美挠脚心视频网站| 精品久久久久久久人人人人传媒| 久久九九全国免费| 亚洲激情av在线| 美女在线观看视频一区二区| 国产成人亚洲综合a∨婷婷| 色综合久久综合网| 日韩欧美www| 中文字幕亚洲一区二区av在线| 五月天中文字幕一区二区| 国内成人自拍视频| 色综合久久综合网| 欧美成人video| 亚洲美女一区二区三区| 精品亚洲免费视频| 色久综合一二码| 欧美精品一区二区三区四区| 亚洲免费色视频| 国产精品一区二区在线播放| 在线观看www91| 国产清纯在线一区二区www| 亚洲成人动漫一区| 成年人国产精品| 欧美大尺度电影在线| 亚洲人成小说网站色在线 | 国产精品综合二区| 欧美日本一区二区三区| 欧美国产在线观看| 日本美女一区二区三区视频| 91蝌蚪porny九色| 久久人人爽爽爽人久久久| 亚洲国产综合人成综合网站| 国产凹凸在线观看一区二区| 7878成人国产在线观看| 亚洲精品久久嫩草网站秘色| 国产一区二区三区四区五区美女| 欧美性生活大片视频| 国产精品国产成人国产三级| 久久精品国产99| 欧美日韩亚洲综合在线| 亚洲欧美色综合| 成人国产亚洲欧美成人综合网| 欧美不卡一区二区三区四区| 亚洲成人自拍网| 色www精品视频在线观看| 国产精品素人一区二区| 国产在线国偷精品免费看| 欧美一级二级三级乱码| 亚洲福利视频三区| 色美美综合视频| 亚洲三级小视频| thepron国产精品| 国产精品视频线看| 国产精品69毛片高清亚洲| 欧美xxxx老人做受| 蓝色福利精品导航| 欧美一区二区网站| 蜜臀av一级做a爰片久久| 在线播放91灌醉迷j高跟美女 | 51精品久久久久久久蜜臀| 亚洲国产成人av网| 一本久久综合亚洲鲁鲁五月天| 中文字幕乱码亚洲精品一区| 丁香一区二区三区| 国产精品视频麻豆| proumb性欧美在线观看| 国产精品白丝在线| 91碰在线视频| 亚洲制服丝袜av| 欧美日韩成人高清| 青青草原综合久久大伊人精品| 欧美男人的天堂一二区| 丝袜诱惑制服诱惑色一区在线观看| 欧美日本视频在线| 麻豆视频一区二区| 国产亚洲精品bt天堂精选| 成人性生交大片免费看中文| 中文字幕一区二区三中文字幕| 成人av在线资源网| 一级精品视频在线观看宜春院| 欧美无人高清视频在线观看| 日韩av午夜在线观看| 精品久久一区二区| 丁香一区二区三区| 一区二区三区日韩欧美精品 | 美女性感视频久久| 欧美精品一区二区久久婷婷| 国产mv日韩mv欧美| 亚洲精品v日韩精品| 欧美日韩一区久久| 精品在线免费视频| 亚洲人成网站在线| 欧美一区二区三区小说| 粉嫩一区二区三区在线看| 一区二区三区在线观看欧美| 91精品在线观看入口| 成人午夜私人影院|