How to change an image in a VB.NET Windows Forms app. System.Drawing.Bitmap in a PictureBox -


I have a VB.NET Windows Forms app on which a system on the form with a logo image. Drawing A picture box inside the bitmap. I used the Visual Studio Designer logo Because BMP was to add an image, I do not currently have any VB code doing anything with it.

Can I want to present the logo clickable object / button to do when I select a new image for'd click on it to a file opens the browser dialog and I replace the current image I .

The current image is a local resource and set it as a system in a PictureBox. Drawing Bitmap How do I change that system? Bitmap while selecting dialog file from filing file?

Hi David, you can change the image of the picture box using the photo box. I have below added, click it

  as on private sub Piccrboks 1 (system. Sender, as the system. Click on PictureBoxl. Open Open File Dilig 1 Click on the OpenFileDialog1.ShowDialog as new OpenFileDialog then Dim NewPic try the new system. Drawings. bitmap (OpenFileDialog1.FileName) PictureBox1.Image = NewPic PictureBox1.SizeMode = PictureBoxSizeMode.Zoom Exception MsgBox ( "an error < / P>