Retrieve Pictures

tofuyan

Member
Joined
Mar 16, 2005
Messages
8
Programming Experience
Beginner
i know that in window application to retrieve picture is the methods shown below


Code:

PictureBox1.Image = Image.FromFile(CurDir() + "\pic\1.gif")


But can i know what is the other method for smart devices?
 

eagle

Active member
Joined
Mar 8, 2005
Messages
28
Programming Experience
1-3
smart device

for smart devices, you do it like this

pic.Image = New System.Drawing.Bitmap(CurrentFolder & "\general.jpg")

this should do it.
Greetz
Eagle
 

tofuyan

Member
Joined
Mar 16, 2005
Messages
8
Programming Experience
Beginner
eagle said:
for smart devices, you do it like this

pic.Image = New System.Drawing.Bitmap(CurrentFolder & "\general.jpg")

this should do it.
Greetz
Eagle

Err....cannot work. The error show CurrentFolder is not declare. Izit must declare?
 
Top Bottom