Solved

Forms, images

Posted on 2013-05-21
4
137 Views
Last Modified: 2013-05-27
How can I set an image to be the background of the form? (I.E. sent to back, so that all controls are still viewable)
0
Comment
Question by:acaraciolo
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:eemit
ID: 39187184
Try:
Private Sub Form_Load()
  Dim sPath As String
  
  sPath = App.Path
  If Right(sPath, 1) <> "\" Then
      sPath = sPath & "\"
  End If
  
  Me.Picture = LoadPicture(sPath & "SamplePicture.jpg")
  
End Sub

Open in new window

0
 

Accepted Solution

by:
acaraciolo earned 0 total points
ID: 39188825
I realized I didn't need the picture box.  I just loaded the picture on the form.  My apologies should have known that from the get go....
0
 
LVL 15

Expert Comment

by:eemit
ID: 39190543
acaraciolo,
>I realized I didn't need the picture box.
but I have posted the solution. I think you should accept my answer.
But if you feel uncomfortable, I don't mind if you want to delete the question.
0
 

Author Closing Comment

by:acaraciolo
ID: 39198783
I wouldn't presume to rate my own ineptness with an A or B.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

838 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