Solved

Changing a Form's Background picture

Posted on 2002-07-09
4
142 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
Comment Utility
Form1.Picture = loadpicture("C:\pic.jpg")
0
 
LVL 3

Expert Comment

by:sanjaykattimani
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you very much.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

743 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

13 Experts available now in Live!

Get 1:1 Help Now