client.frm
来自「经验交流,从网上下载的好东西望大家分享」· FRM 代码 · 共 36 行
FRM
36 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 2508
ClientLeft = 48
ClientTop = 324
ClientWidth = 3744
LinkTopic = "Form1"
ScaleHeight = 2508
ScaleWidth = 3744
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 492
Left = 600
TabIndex = 0
Top = 840
Width = 1212
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error GoTo MyHandler
Dim Test As New Component.InsideCOM
Print Test.Sum(4, 3) ' Everything is OK
Print Test.Sum(-1, 5) ' Raises exception
Exit Sub
MyHandler: ' Exception transfers execution control here
MsgBox Err.Description ' Displays: Negative numbers not allowed
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?