form1.frm
来自「vb程序员基础联系 详细介绍了vb listbox控件的使用方法」· FRM 代码 · 共 28 行
FRM
28 行
VERSION 5.00
Begin VB.Form Form1
Caption = "End、Exit语句的使用技巧"
ClientHeight = 1200
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 1200
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim username, password As String
username = InputBox("请输入您的姓名:")
password = InputBox("请输入您的密码:")
If username <> "mrsoft" Or password <> "12345" Then
MsgBox "对不起,您无权使用该机器"
End
End If
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?