VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Image File viewer

by Nadeem Gulzar Rana (3 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 30th September 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Image File viewer

Rate Image File viewer



File1.Path = Dir1.Path
End Sub

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

Private Sub Drive1_GotFocus()
File1.FileName = Text1.Text
End Sub

Private Sub File1_Click()
On Error GoTo pnd
Picture1.Picture = LoadPicture(Dir1.Path & "\" & File1.FileName)

pnd:
If Err.Number = 481 Then
MsgBox "Invalid file or file is curupted!"
End If

End Sub

Private Sub Text1_Change()
File1.FileName = Text1.Text
End Sub


Download this snippet    Add to My Saved Code

Image File viewer Comments

No comments have been posted about Image File viewer. Why not be the first to post a comment about Image File viewer.

Post your comment

Subject:
Message:
0/1000 characters