?
Solved

Changing a Form's Background picture

Posted on 2002-07-09
4
Medium Priority
?
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 53

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

764 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