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

📄 form1.frm

📁 vb电子书籍
💻 FRM
字号:
VERSION 5.00
Begin VB.Form form1 
   Caption         =   "控件数组"
   ClientHeight    =   4230
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5640
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   4230
   ScaleWidth      =   5640
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command1 
      Caption         =   "圆"
      Height          =   615
      Index           =   3
      Left            =   720
      TabIndex        =   4
      Top             =   3240
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "圆"
      Height          =   615
      Index           =   2
      Left            =   720
      TabIndex        =   3
      Top             =   2280
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "矩形"
      Height          =   615
      Index           =   1
      Left            =   720
      TabIndex        =   2
      Top             =   1320
      Width           =   975
   End
   Begin VB.PictureBox Picture1 
      Height          =   3015
      Left            =   2280
      ScaleHeight     =   2955
      ScaleWidth      =   2835
      TabIndex        =   1
      Top             =   600
      Width           =   2895
   End
   Begin VB.CommandButton Command1 
      Caption         =   "直线"
      Height          =   615
      Index           =   0
      Left            =   720
      TabIndex        =   0
      Top             =   360
      Width           =   975
   End
End
Attribute VB_Name = "form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'******************************************************************
'************** 过程名称:Command1_Click
'************** 参数:index 为Integer型
'******************************************************************
Private Sub Command1_Click(index As Integer)
  Picture1.Cls
  Picture1.FillStyle = 6
  Select Case index
    Case 0
      Picture1.Print "画直线"
      Picture1.Line (2, 2)-(7, 7)
    Case 1
      Picture1.Print "画矩形"
      Picture1.Line (2, 2)-(7, 7), , BF
    Case 2
      Picture1.Print "画圆"
      Picture1.Circle (4.5, 4.5), 3.5, , , 1.4
    Case Else
      End
  End Select
End Sub
  
'******************************************************************
'************** 过程名称:Form_Load
'************** 参数: 无
'******************************************************************
Private Sub Form_Load()
  Picture1.Scale (0, 0)-(10, 10)
End Sub

Private Sub Picture1_Click()

End Sub

⌨️ 快捷键说明

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