form1.frm

来自「Visual Basic程序设计基础》-杨小影-源代码」· FRM 代码 · 共 37 行

FRM
37
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3150
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3150
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture1 
      Height          =   2055
      Left            =   720
      ScaleHeight     =   1995
      ScaleWidth      =   3435
      TabIndex        =   0
      Top             =   360
      Width           =   3495
   End
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()
Picture1.Picture = LoadPicture("C:\WINDOWS\安装程序.bmp") '加载图片
Picture1.FontSize = 20           '设置字号
Picture1.FontName = "隶书"       '设置字体
Picture1.CurrentX = 400          '指定print方法输出的起始横坐标
Picture1.CurrentY = 500          '指定print方法输出的起始横坐标
Picture1.Print "努力学VB"        '在图片框上输出文字

End Sub

⌨️ 快捷键说明

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