• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

Forms, images

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
acaraciolo
Asked:
acaraciolo
  • 2
  • 2
1 Solution
 
eemitCommented:
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
 
acaracioloAuthor Commented:
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
 
eemitCommented:
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
 
acaracioloAuthor Commented:
I wouldn't presume to rate my own ineptness with an A or B.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now