form1.frm

来自「vb电子书籍」· FRM 代码 · 共 53 行

FRM
53
字号
   VERSION 5.00
   Begin VB.Form Form1
      BackColor       =   &H80000000&
      ClientHeight    =   2490
      ClientLeft      =   60
      ClientTop       =   345
      ClientWidth     =   4140
      FillColor       =   &H00FF0000&
      BeginProperty Font
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Icon            =   "Form1.frx":0000
      LinkTopic       =   "Form1"
      ScaleHeight     =   2490
      ScaleWidth      =   4140
      StartUpPosition =   2  '屏幕中心
   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
'##################################################################
'## 过程名称:Form_Click
'## 参数: 无
'##################################################################
Private Sub Form_Click()
    Form1.Scale (-110, 110)-(110, -110)
    Line (-105, 0)-(105, 0): Line (0, 105)-(0, -105)
    CurrentX = 105: CurrentY = 20: Print "x"
    CurrentX = 10: CurrentY = 105: Print "y"
    For i = -100 To 100 Step 20
        CurrentX = i: CurrentY = 7: Line -(i, 0)
        CurrentX = i - 5: CurrentY = -5: Print i / 10
    Next i
    
    For i = -100 To 100 Step 20
        If i <> 0 Then
            CurrentX = -15: rurrenty = i + 5: Print i / 10
            CurrentX = 7: rurrenty = i: Line -(0, i)
        End If
    Next i
End Sub
    

⌨️ 快捷键说明

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