Displaying image from folder/file in vb.net

后端 未结 2 2027
夕颜
夕颜 2021-02-09 02:32
Dim ImagePath As String = \"images/spaceship2.png\"
Dim img1 As Bitmap
Dim newImage As Image = Image.FromFile(\"images/spaceship2.png\")

img1 = New Bitmap(ImagePath)
pb         


        
2条回答
  •  遥遥无期
    2021-02-09 03:09

    You can try this:

    PictureBox1.Image = Image.FromFile("c:\some path\folder\myImage.jpg")
    

提交回复
热议问题