frmloadpic.frm
资源名称:大学人事管理系统.zip [点击查看]
上传用户:plkplk66
上传日期:2007-06-06
资源大小:686k
文件大小:2k
源码类别:
其他行业
开发平台:
Visual Basic
- 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