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

📄 form1.frm

📁 很多的vb经典源代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "图形复制演示"
   ClientHeight    =   2685
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5175
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2685
   ScaleWidth      =   5175
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command5 
      Caption         =   "picture属性复制"
      Height          =   495
      Left            =   4080
      TabIndex        =   6
      Top             =   2040
      Width           =   975
   End
   Begin VB.PictureBox Picture2 
      Height          =   1575
      Left            =   2760
      ScaleHeight     =   1515
      ScaleWidth      =   2115
      TabIndex        =   5
      Top             =   120
      Width           =   2175
   End
   Begin VB.PictureBox Picture1 
      AutoRedraw      =   -1  'True
      Height          =   1575
      Left            =   240
      ScaleHeight     =   1515
      ScaleWidth      =   2115
      TabIndex        =   4
      Top             =   120
      Width           =   2175
   End
   Begin VB.CommandButton Command3 
      Caption         =   "image属性复制图形"
      Height          =   495
      Left            =   2160
      TabIndex        =   3
      Top             =   2040
      Width           =   975
   End
   Begin VB.CommandButton Command4 
      Caption         =   "清除图形"
      Height          =   495
      Left            =   3120
      TabIndex        =   2
      Top             =   2040
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "打印文本"
      Height          =   495
      Left            =   1200
      TabIndex        =   1
      Top             =   2040
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "装载图形"
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   2040
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "复制出的图形"
      Height          =   180
      Left            =   3240
      TabIndex        =   8
      Top             =   1800
      Width           =   1080
   End
   Begin VB.Label Label1 
      Caption         =   "原图形"
      Height          =   180
      Left            =   840
      TabIndex        =   7
      Top             =   1800
      Width           =   540
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
Picture1.Picture = LoadPicture("C:\samples\boy.gif")

End Sub

Private Sub Command2_Click()
Picture1.CurrentX = 1200
Picture1.CurrentY = 200
Picture1.FontName = "宋体"
Picture1.FontSize = 11
Picture1.Print "自画像"

End Sub

Private Sub Command3_Click()
Picture2.Picture = Picture1.Image




End Sub

Private Sub Command4_Click()
Picture2.Picture = LoadPicture("")
End Sub

Private Sub Command5_Click()
Picture2.Picture = Picture1.Picture
End Sub



⌨️ 快捷键说明

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