📄 tes_koneksi.frm
字号:
VERSION 5.00
Object = "{997F88E9-8CA8-4FD7-A3C6-F411CF22CD7C}#43.0#0"; "MFBUS15.OCX"
Begin VB.Form Tes_koneksi
Caption = "Tes Koneksi Handphone"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton koneksi
Caption = "Tes Koneksi"
Height = 375
Left = 120
TabIndex = 1
Top = 2760
Width = 1095
End
Begin MFBUS15.MFBUS15Control FBUS
Height = 480
Left = 360
TabIndex = 0
Top = 240
Width = 480
_ExtentX = 847
_ExtentY = 847
End
End
Attribute VB_Name = "Tes_koneksi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Unload(Cancel As Integer)
Unload Tes_koneksi
If FBUS.Connected Then
FBUS.Disconnect
End If
End Sub
Private Sub koneksi_Click()
On Error GoTo gagal
FBUS.Connect "COM2"
MsgBox "HP dapat diakses"
gagal:
If Err <> 0 Then
MsgBox "HP gagal di akses", vbOKOnly, "Status Koneksi"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -