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

📄 frmloadpic.frm

📁 功能比较全
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmloadpic 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "添加图片"
   ClientHeight    =   3135
   ClientLeft      =   5760
   ClientTop       =   1410
   ClientWidth     =   3915
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3135
   ScaleWidth      =   3915
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   435
      Left            =   210
      TabIndex        =   3
      Top             =   2460
      Width           =   1275
   End
   Begin VB.FileListBox File1 
      Height          =   1530
      Left            =   1680
      TabIndex        =   2
      Top             =   1365
      Width           =   2010
   End
   Begin VB.DirListBox Dir1 
      Height          =   1140
      Left            =   1680
      TabIndex        =   1
      Top             =   105
      Width           =   2010
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   210
      TabIndex        =   0
      Top             =   105
      Width           =   1275
   End
   Begin VB.Image Image1 
      BorderStyle     =   1  'Fixed Single
      Height          =   1755
      Left            =   210
      Stretch         =   -1  'True
      Top             =   525
      Width           =   1305
   End
End
Attribute VB_Name = "frmloadpic"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
If flag = 1 Then
With frmstudent
         .Image1.Picture = LoadPicture(FNAME)
         .Enabled = True
         .Label16.Visible = False
         .SetFocus
End With
End If
If flag = 0 Then
With frmteacher
         .Image1.Picture = LoadPicture(FNAME)
         .Label7.Visible = False
         .Enabled = True
         .SetFocus
End With
End If
Unload Me
End Sub

Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub

Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub

Private Sub File1_Click()
FNAME = File1.Path & "\" & File1.FileName
Image1.Picture = LoadPicture(FNAME)
End Sub


⌨️ 快捷键说明

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