Wednesday, December 7, 2011

Picture Viewer

THE CODE:-
The whole program is shown below and the output is shown in the figure below:
 Private Sub Image1_Click()
CommonDialog1.Filter = "Bitmaps(*.BMP)|*.BMP|Metafiles(*.WMF)|*.WMF|Jpeg Files(*.jpg)|*.jpg|GIF Files(*.gif)|*.gif|Icon Files(*.ico)|*.ico|All Files(*.*)|*.*"
CommonDialog1.ShowOpen
Picture1.Picture = LoadPicture (CommonDialog1.FileName)
End Sub

No comments: