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

📄 form0402.frm

📁 VB实验教程源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BackColor       =   &H00C0FFC0&
   Caption         =   "学生管理"
   ClientHeight    =   3090
   ClientLeft      =   1260
   ClientTop       =   1245
   ClientWidth     =   4680
   ForeColor       =   &H0000FFFF&
   LinkTopic       =   "Form1"
   MinButton       =   0   'False
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   495
      Left            =   1680
      TabIndex        =   0
      Top             =   2280
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   735
      Left            =   960
      TabIndex        =   1
      Top             =   600
      Width           =   2655
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
'单击按钮
    End
End Sub

Private Sub Form_Click()
'单击窗体
    Move 1000, 1000
    Print "谢谢你的进入"
End Sub

Private Sub Form_Load()
'装载窗体
    AutoRedraw = True
    Command1.Caption = "退出"
    Label1.Caption = "欢迎使用学生信息管理系统"
End Sub

Private Sub Form_Resize()
'调整窗体大小
    Label1.Move 100 '将标签放置在窗体100的位置
End Sub

Private Sub Form_Unload(Cancel As Integer)
'卸载窗体
    Dim Answer As Integer
    Label1.Caption = "再见!"
    Answer = MsgBox("正在卸载窗体,是否确定?", vbOKCancel, "卸载窗体")
    If Answer = 1 Then
        Cancel = 0
    Else
        Cancel = 1
    End If
End Sub

⌨️ 快捷键说明

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