Thursday 2 April 2015

Picture Browser in Visual Basic 6 0- Using Drive List ,Directory List,Fi...


PICTURE VIEWER IN VISUAL BASIC 6.0

How you can create a picture Viewer/Browser in Visual Basic 6.0 with four controls Drive List Box ,Directory List Box,File List Box,Picture Box.
Just write a few lines of code and make some changes in the properties windows for each control .
Every one can create such application.
Code:
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub

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

Private Sub File1_Click()
On Error Resume Next
Picture1.Picture = LoadPicture(File1.Path + "\" + File1.FileName)
End Sub

LIKE AND SHARE.

SUBSCRIBE TO MY CHANNEL :-)

No comments:

Post a Comment