Dim ImagePath As String = "images/spaceship2.png" Dim img1 As Bitmap Dim newImage As Image = Image.FromFile("images/spaceship2.png") img1 = New Bitmap(ImagePath) pb2.ImageLocation = ImagePath pb1.Image = newImage
I want to display an image from a folder, for example, a student with identification number 22137471, an image with the name 22137471 will be displayed on my picture box, between which I saw this code somewhere in google.
source share