Changing a Form's Background picture

Ok, how can I change the picture from a file on the computer? Say I have a picture "C:\pic.jpg" how can I load that into Form1.Picture? Code would help.
LVL 2
LinkyAsked:
Who is Participating?
 
schworakConnect With a Mentor Commented:
Form1.Picture = loadpicture("C:\pic.jpg")
0
 
sanjaykattimaniCommented:
If you want to set the picture at design time, you can select the form-> Picture property, then browse to locate the file c:\pic.jpg
thats it.
 
0
 
Ryan ChongCommented:
Set the AutoRedraw of Form to True.

and set the bk picture to Nothing before use loadpicture function to load the image.
0
 
LinkyAuthor Commented:
Thank you very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.