?
Solved

Changing a Form's Background picture

Posted on 2002-07-09
4
Medium Priority
?
151 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:Linky
4 Comments
 
LVL 3

Accepted Solution

by:
schworak earned 200 total points
ID: 7142084
Form1.Picture = loadpicture("C:\pic.jpg")
0
 
LVL 3

Expert Comment

by:sanjaykattimani
ID: 7142569
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
 
LVL 54

Expert Comment

by:Ryan Chong
ID: 7142720
Set the AutoRedraw of Form to True.

and set the bk picture to Nothing before use loadpicture function to load the image.
0
 
LVL 2

Author Comment

by:Linky
ID: 7147235
Thank you very much.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question