Solved

Changing a Form's Background picture

Posted on 2002-07-09
4
144 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 50 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 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now