pexam11_10.frm

来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 35 行

FRM
35
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   2040
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4350
   LinkTopic       =   "Form1"
   ScaleHeight     =   2040
   ScaleWidth      =   4350
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
  ScaleWidth = 100
  ScaleHeight = 100
  DrawWidth = 5
  '画三角形
  Line (10, 30)-(10, 80), vbRed
  Line -(30, 80), vbGreen
  Line -(10, 30), vbBlue
  '画矩形
  CurrentX = 40:   CurrentY = 30
  Line -(60, 80), vbRed, B
  '画实心矩形
  CurrentX = 70:   CurrentY = 30
  Line -Step(20, 50), vbMagenta, BF

End Sub

⌨️ 快捷键说明

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