Question how to load image?

MARIGOLD

New member
Joined
Oct 3, 2011
Messages
2
Programming Experience
Beginner
Hi,
I studied VB6 8 years ago, now I wanted to create a small program for my daughter and I installed VB express but I found difficulties in loading image, then I discovered that is uses VB.NET which is different from VBstudio

I searched and found long coding to just load image!
in VB6 the code was so simple just loadpicture, and now i find many strange coding like drawing.size and drawing.mode
can some one tell me very basic code to load picture from the Application Path app.path,, I tried to use my old vb6 book but it is not useful anymore

and how do i know my .net frame work? i set 2.0 in my profile but really do not
by the way, i am willing to buy a new book for vb.net, do you recommend any books for me as a beginner in vb.net?
 
try to use this command...

'-----------------------------------------------------
Imports System.Drawing

Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
PictureBox1.Image = Image.FromFile("d:\Image\Twitter-com.jpg")
End Sub
End Class
'-----------------------------------------------------
 
Back
Top