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

📄 form1.frm

📁 VB实例.一些书本上的经典例子,很有参考价值
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "我的工具箱"
   ClientHeight    =   2670
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3465
   LinkTopic       =   "Form1"
   ScaleHeight     =   2670
   ScaleWidth      =   3465
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command4 
      Caption         =   "CD播放器"
      Height          =   1095
      Left            =   1800
      Picture         =   "Form1.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   1440
      Width           =   1455
   End
   Begin VB.CommandButton Command3 
      Caption         =   "写字板"
      Height          =   1095
      Left            =   120
      Picture         =   "Form1.frx":0442
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1440
      Width           =   1455
   End
   Begin VB.CommandButton Command2 
      Caption         =   "画图板"
      Height          =   1095
      Left            =   1800
      Picture         =   "Form1.frx":0884
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   120
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "记事本"
      Height          =   1095
      Left            =   120
      Picture         =   "Form1.frx":0CC6
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   120
      Width           =   1455
   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()
Shell "C:\windows\Notepad.exe", 1
End Sub

Private Sub Command2_Click()
Shell "C:\windows\Pbrush.exe", 1
End Sub

Private Sub Command3_Click()
Shell "C:\windows\write.exe", 1
End Sub

Private Sub Command4_Click()
Shell "C:\windows\cdplayer.exe", 1
End Sub

Private Sub Form_Resize()
Command1.Left = 120: Command1.Top = 120
Command1.Width = Form1.Width / 2 - 480
Command1.Height = Form1.Height / 2 - 480
Command2.Left = Form1.Width / 2 + 120: Command2.Top = 120
Command2.Width = Form1.Width / 2 - 480
Command2.Height = Form1.Height / 2 - 480
Command3.Left = 120: Command3.Top = Form1.Height / 2
Command3.Width = Form1.Width / 2 - 480
Command3.Height = Form1.Height / 2 - 480
Command4.Left = Form1.Width / 2 + 120: Command4.Top = Form1.Height / 2
Command4.Width = Form1.Width / 2 - 480
Command4.Height = Form1.Height / 2 - 480
End Sub

⌨️ 快捷键说明

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