In this tutorial I show you how to use settings for pictures in Visual Basic 2008.
-----------------------------------------------------------------------------------------
Codes:
Button1 (Open...):
Try
OpenFileDialog1.Title = "Open Picture"
OpenFileDialog1.FileName = ".jpg"
OpenFileDialog1.Filter = "All Files |*.*"
OpenFileDialog1.ShowDialog()
PictureBox1.Image = System.Drawing.Image.FromFile(OpenFileDialog1.FileName)
Catch ex As Exception
'Do Nothing
End Try
Button2 (Save and exit):
My.Settings.Picture = OpenFileDialog1.FileName
My.Settings.Save()
End
Form1.Load
PictureBox1.ImageLocation = My.Settings.Picture
-----------------------------------------------------------------------------------------
Thanks for watching!
Please Rate, Comment and SUBSCRIBE!!
Also check me out on Facebook:
http://www.facebook.com/photo.php?pid=1243531&id=1375095300#!/pages/Bingo...
THANKS BRO!!! Subbed, liked, commented... gave a view.... xD THANKS!
YouDucks32 4 months ago
Thanks to help me !!!
darwin839 1 year ago