现编了一个,你自己完善吧
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
If Right$(Dir1.Path, 1) <> "\" Then
Picture1.Picture = LoadPicture(Dir1.Path & "\" & File1.FileName)
Else
Picture1.Picture = LoadPicture(Dir1.Path & File1.FileName)
End If
End Sub
Private Sub Form_Load()
File1.Pattern = "*.jpg"
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()
If Right$(Dir1.Path, 1) <> "\" Then
Picture1.Picture = LoadPicture(Dir1.Path & "\" & File1.FileName)
Else
Picture1.Picture = LoadPicture(Dir1.Path & File1.FileName)
End If
End Sub
Private Sub Form_Load()
File1.Pattern = "*.jpg"
End Sub