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

📄 stute.frm

📁 内似于WINDOWS的画比工具的VB程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form4 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "图像属性"
   ClientHeight    =   1530
   ClientLeft      =   45
   ClientTop       =   285
   ClientWidth     =   3105
   DrawStyle       =   2  'Dot
   LinkTopic       =   "Form4"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   102
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   207
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   375
      Left            =   1680
      TabIndex        =   5
      Top             =   1080
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   375
      Left            =   120
      TabIndex        =   4
      Top             =   1080
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   1560
      TabIndex        =   3
      Text            =   "Text2"
      Top             =   600
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   1560
      TabIndex        =   2
      Text            =   "Text1"
      Top             =   120
      Width           =   1455
   End
   Begin VB.Label Label2 
      Caption         =   "输入图象高度:"
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   1335
   End
   Begin VB.Label Label1 
      Caption         =   "输入图象宽度:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   1335
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
Dim a  As Integer
Dim b  As Integer
a = Text1.Text
b = Text2.Text
'根据输入改变图形框的属性
If Err = 0 Then
Form1.Picture1.Width = a
Form1.Picture1.Height = b
MDIForm1.Enabled = True
MDIForm1.Visible = True
Form4.Visible = False
Else
MsgBox "错误!"
End If
Form5.Picture1.Width = Form1.Picture1.Width
Form5.Picture1.Height = Form1.Picture1.Height
End Sub

Private Sub Command2_Click()
MDIForm1.Enabled = True
Form4.Visible = False
Form5.Picture1.Width = Form1.Picture1.Width
Form5.Picture1.Height = Form1.Picture1.Height
End Sub

Private Sub Form_Activate()
MDIForm1.Enabled = False
Form5.Picture1.Width = Form1.Picture1.Width
Form5.Picture1.Height = Form1.Picture1.Height
End Sub

Private Sub Form_Load()
Text1.Text = Form1.Picture1.Width
Text2.Text = Form1.Picture1.Height
Form5.Picture1.Width = Form1.Picture1.Width
Form5.Picture1.Height = Form1.Picture1.Height
End Sub

Private Sub Form_Unload(Cancel As Integer)
MDIForm1.Enabled = True
MDIForm1.Visible = True

End Sub

⌨️ 快捷键说明

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