⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form10.frm

📁 上传的包含两个文件
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3480
      TabIndex        =   1
      Top             =   1680
      Width           =   735
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   3480
      TabIndex        =   0
      Top             =   720
      Width           =   735
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Function return1()
Dim nl$, msg$
nl = Chr(13) + Chr(10)
msg$ = "1.运行DOS命令" + nl + "2.运行VB应用程序"
msg$ = msg$ + nl + "3.计算器"
msg$ = msg$ + nl + nl + "请输入数字选择:"
return1 = InputBox(msg$)
End Function
Private Sub Command1_Click()
Dim r, x, y, z As Integer
r = return1()
If r = 1 Then
  x = Shell("command.com", 1)
ElseIf r = 2 Then
y = Shell("vb6.exe", 1)
ElseIf r = 3 Then
z = Shell("calc.exe", 1)
Else
MsgBox "请输入1---3的数"
End If
End Sub

Private Sub Command2_Click()
End
End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -