📄 usb_to_serial.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = """USB to Serial Example"""
ClientHeight = 3720
ClientLeft = 45
ClientTop = 330
ClientWidth = 9810
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3720
ScaleWidth = 9810
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton CmdReceive
Caption = "Receive Byte"
Height = 495
Left = 6600
TabIndex = 48
Top = 1800
Width = 975
End
Begin VB.CommandButton CmdWrite
Caption = "Send Byte"
Height = 495
Left = 6600
TabIndex = 47
Top = 1080
Width = 975
End
Begin VB.Timer tmrDelay
Left = 360
Top = 3000
End
Begin VB.TextBox txtReceived
Alignment = 1 'Right Justify
Height = 285
Left = 8280
TabIndex = 19
TabStop = 0 'False
Top = 600
Width = 975
End
Begin VB.ComboBox Combo1
Height = 315
ItemData = "USB_to_Serial.frx":0000
Left = 5160
List = "USB_to_Serial.frx":0002
Style = 2 'Dropdown List
TabIndex = 7
Top = 600
Width = 975
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Height = 285
Left = 360
TabIndex = 0
TabStop = 0 'False
Text = "Please Connect"
Top = 2520
Width = 3615
End
Begin VB.CommandButton cmdExit
Caption = "Exit"
Height = 495
Left = 1560
TabIndex = 5
Top = 1800
Width = 975
End
Begin VB.TextBox txtPID
DataSource = "MyProductID"
Height = 375
Left = 960
TabIndex = 3
Text = "5500"
Top = 1080
Width = 1215
End
Begin VB.TextBox txtVID
Height = 375
Left = 960
TabIndex = 2
Text = "4B4"
Top = 600
Width = 1215
End
Begin VB.CommandButton Command_Connect
Caption = "Connect"
Height = 495
Left = 480
TabIndex = 4
Top = 1800
Width = 975
End
Begin VB.Frame Connect
BackColor = &H80000000&
Caption = "Connect (Enter in HEX)"
Height = 3135
Left = 240
TabIndex = 8
Top = 240
Width = 3855
Begin VB.TextBox txtConfig
Alignment = 2 'Center
Height = 285
Left = 120
TabIndex = 49
Top = 2640
Width = 3615
End
Begin VB.CommandButton Cmd_showHIDs
Caption = "Show Connected VID/PIDs"
Height = 615
Left = 2520
TabIndex = 6
Top = 1560
Width = 1095
End
Begin VB.TextBox Text2
Height = 1215
Left = 2400
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 1
TabStop = 0 'False
Top = 240
Width = 1335
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "PID"
Height = 255
Left = 240
TabIndex = 18
Top = 960
Width = 495
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "VID"
Height = 255
Left = 240
TabIndex = 17
Top = 480
Width = 495
End
End
Begin VB.Label Label3
Alignment = 2 'Center
Caption = "Byte Read (HEX)"
Height = 255
Left = 8160
TabIndex = 46
Top = 240
Width = 1215
End
Begin VB.Label Label15
Alignment = 2 'Center
Caption = " Red = Byte Sent"
Height = 255
Left = 4920
TabIndex = 45
Top = 3120
Width = 1455
End
Begin VB.Label Label14
Alignment = 1 'Right Justify
Caption = "To Select Byte To Send: Click LED or Use Drop Down"
Height = 495
Left = 4560
TabIndex = 44
Top = 120
Width = 2175
End
Begin VB.Label Label9
Alignment = 2 'Center
Caption = "LED8"
Height = 255
Left = 4680
TabIndex = 43
Top = 2760
Width = 615
End
Begin VB.Label lblLED
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 7
Left = 5400
TabIndex = 16
Top = 2760
Width = 735
End
Begin VB.Label lblLED
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 6
Left = 5400
TabIndex = 15
Top = 2520
Width = 735
End
Begin VB.Label lblLED
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 5
Left = 5400
TabIndex = 14
Top = 2280
Width = 735
End
Begin VB.Label lblLED
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 4
Left = 5400
TabIndex = 13
Top = 2040
Width = 735
End
Begin VB.Label lblLED
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 3
Left = 5400
TabIndex = 12
Top = 1800
Width = 735
End
Begin VB.Label lblLED
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 2
Left = 5400
TabIndex = 11
Top = 1560
Width = 735
End
Begin VB.Label lblLED
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 1
Left = 5400
TabIndex = 10
Top = 1320
Width = 735
End
Begin VB.Label lblLED
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 0
Left = 5400
TabIndex = 9
Top = 1080
Width = 735
End
Begin VB.Label Label22
Alignment = 2 'Center
Caption = "SW5"
Height = 255
Left = 7800
TabIndex = 42
Top = 2040
Width = 615
End
Begin VB.Label Label21
Alignment = 2 'Center
Caption = "SW6"
Height = 255
Left = 7800
TabIndex = 41
Top = 2280
Width = 615
End
Begin VB.Label Label20
Alignment = 2 'Center
Caption = "SW7"
Height = 255
Left = 7800
TabIndex = 40
Top = 2520
Width = 615
End
Begin VB.Label Label19
Alignment = 2 'Center
Caption = "SW8"
Height = 255
Left = 7800
TabIndex = 39
Top = 2760
Width = 615
End
Begin VB.Label Label18
Alignment = 2 'Center
Caption = "SW1"
Height = 255
Left = 7800
TabIndex = 38
Top = 1080
Width = 615
End
Begin VB.Label Label17
Alignment = 2 'Center
Caption = "SW2"
Height = 255
Left = 7800
TabIndex = 37
Top = 1320
Width = 615
End
Begin VB.Label Label16
Alignment = 2 'Center
Caption = "SW3"
Height = 255
Left = 7800
TabIndex = 36
Top = 1560
Width = 615
End
Begin VB.Label Label13
Alignment = 2 'Center
Caption = "SW4"
Height = 255
Left = 7800
TabIndex = 35
Top = 1800
Width = 615
End
Begin VB.Label Label12
Alignment = 2 'Center
Caption = "LED5"
Height = 255
Left = 4680
TabIndex = 34
Top = 2040
Width = 615
End
Begin VB.Label Label11
Alignment = 2 'Center
Caption = "LED6"
Height = 255
Left = 4680
TabIndex = 33
Top = 2280
Width = 615
End
Begin VB.Label Label10
Alignment = 2 'Center
Caption = "LED7"
Height = 255
Left = 4680
TabIndex = 32
Top = 2520
Width = 615
End
Begin VB.Label Label8
Alignment = 2 'Center
Caption = "LED4"
Height = 255
Left = 4680
TabIndex = 31
Top = 1800
Width = 615
End
Begin VB.Label Label7
Alignment = 2 'Center
Caption = "LED3"
Height = 255
Left = 4680
TabIndex = 30
Top = 1560
Width = 615
End
Begin VB.Label Label6
Alignment = 2 'Center
Caption = "LED2"
Height = 255
Left = 4680
TabIndex = 29
Top = 1320
Width = 615
End
Begin VB.Label Label5
Alignment = 2 'Center
Caption = "LED1"
Height = 255
Left = 4680
TabIndex = 28
Top = 1080
Width = 615
End
Begin VB.Label lblswitch
Alignment = 2 'Center
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 7
Left = 8520
TabIndex = 27
Top = 2760
Width = 735
End
Begin VB.Label lblswitch
Alignment = 2 'Center
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Height = 255
Index = 6
Left = 8520
TabIndex = 26
Top = 2520
Width = 735
End
Begin VB.Label lblswitch
Alignment = 2 'Center
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -