?? frmloadpic.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 + -