29-10-17, 07:31 PM
PHP كود :
Dim path As String = "E:\folder\\"
Dim i As Integer = Val(TextBox1.Text)
PictureBox1.Image = Nothing
Dim jpgfn As String = path & i & ".jpg"
Dim pngfn As String = path & i & ".png"
Dim jpegfn As String = path & i & ".jpeg"
If IO.File.Exists(jpgfn) Then PictureBox1.Image = Image.FromFile(jpgfn)
If IO.File.Exists(pngfn) Then PictureBox1.Image = Image.FromFile(pngfn)
If IO.File.Exists(jpegfn) Then PictureBox1.Image = Image.FromFile(jpegfn)
