albertkhor
Well-known member
- Joined
- Jan 12, 2006
- Messages
- 150
- Programming Experience
- Beginner
i have a database which is use to store a photo and i use PictureBox to show the photo. Can i get Image path from PictureBox?
[COLOR=seagreen]'Show the open file dialog box.[/COLOR]
If ofdLookalike.ShowDialog = DialogResult.OK Then
[COLOR=green]'Load picture into picture box.[/COLOR]
picPictureShow.Image = Image.FromFile(ofdLookalike.FileName)
[COLOR=green]'Show the name of the file in the Form's caption[/COLOR].
Me.Text = "Picture Show (" & ofdLookalike.FileName & ")"
End If
MsgBox("Picture Show (" & ofdLookalike.FileName & ")")
Sometimes, just having the tools is not enough - a good guide will show how to use them.