Monday, 15 September 2014

vb.net - Allow user to insert a custom image -


I made an idea when I was between creating a VB.NET (Visual Basic 2010 Express) application. I want the users to include their own images in my application. How do i do this I know that there is something like open file dialog

You can do it with the following code . If you want to show it in a picture box, you can follow the code below, otherwise you can save image byte data in DB.

  OpenFileDialog1.ShowDialog () PictureBox1.Image = Image .FromFile (OpenFileDialog1.FileName)  

No comments:

Post a Comment