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

📄 f2-3.frm

📁 VB课程教学的讲义源的代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "2-3 常用方法举例"
   ClientHeight    =   3015
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4545
   LinkTopic       =   "Form1"
   ScaleHeight     =   3015
   ScaleWidth      =   4545
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command5 
      Caption         =   "Hide方法和Show方法"
      Height          =   495
      Left            =   360
      TabIndex        =   5
      Top             =   2280
      Width           =   2415
   End
   Begin VB.CommandButton Command4 
      Caption         =   "Move方法"
      Height          =   495
      Left            =   3240
      TabIndex        =   4
      Top             =   1560
      Width           =   975
   End
   Begin VB.PictureBox Picture1 
      Height          =   1095
      Left            =   2520
      ScaleHeight     =   1035
      ScaleWidth      =   1755
      TabIndex        =   3
      Top             =   240
      Width           =   1815
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   495
      Left            =   3240
      TabIndex        =   2
      Top             =   2280
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "显示"
      Height          =   495
      Left            =   360
      TabIndex        =   1
      Top             =   1560
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Cls方法"
      Height          =   495
      Left            =   1800
      TabIndex        =   0
      Top             =   1560
      Width           =   975
   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()
    Form1.Cls
    Picture1.Cls
    
End Sub

Private Sub Command2_Click()
    ForeColor = vbRed
    FontSize = 28
    Print "Visual Basic"
    Print "Visual basic"
    Print "Visual basic"
    Picture1.Print "Visual Basic"
    Picture1.Print "Visual Basic"
        
End Sub

Private Sub Command3_Click()
    End
    
End Sub

Private Sub Command4_Click()
'Form1.Move 1000, 1000, 4000, 4000
'Form1.Move 800, 800
Form1.Move 1000


End Sub

Private Sub Command5_Click()
Form1.Hide
Form2.Show 1

End Sub

⌨️ 快捷键说明

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