Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Tutorial - Visual Basic 2008 Settings for Pictures

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
609 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 11, 2010

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...

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • THANKS BRO!!! Subbed, liked, commented... gave a view.... xD THANKS!

  • Thanks to help me !!!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more