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

📄 form1.frm

📁 本文件包含200个visual baisc实例
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "在图片上放置文字"
   ClientHeight    =   2100
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4560
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   2100
   ScaleWidth      =   4560
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   315
      Left            =   2565
      TabIndex        =   3
      Top             =   1680
      Width           =   1005
   End
   Begin VB.CommandButton Command2 
      Caption         =   "清除文字"
      Height          =   315
      Left            =   1560
      TabIndex        =   2
      Top             =   1680
      Width           =   1005
   End
   Begin VB.CommandButton Command1 
      Caption         =   "插入文字"
      Height          =   315
      Left            =   540
      TabIndex        =   1
      Top             =   1680
      Width           =   1005
   End
   Begin VB.PictureBox Picture1 
      ForeColor       =   &H00FF0000&
      Height          =   1500
      Left            =   105
      ScaleHeight     =   1440
      ScaleWidth      =   4320
      TabIndex        =   0
      Top             =   75
      Width           =   4380
   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_Load()
  Picture1.Picture = LoadPicture(App.Path & "\back.bmp")  '载入图片
End Sub

Private Sub Command1_Click()                               '在图片上放置文字
  Picture1.FontName = "隶书"
  Picture1.FontSize = "30"
  Picture1.Print "  请欣赏图片!"
End Sub

Private Sub Command2_Click()                               '清除文字
  Picture1.Cls
End Sub

Private Sub Command3_Click()
  Unload Me
End Sub

⌨️ 快捷键说明

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