Link to home
Create AccountLog in
Avatar of acaraciolo
acaraciolo

asked on

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)
Avatar of eemit
eemit
Flag of Germany image

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

ASKER CERTIFIED SOLUTION
Avatar of acaraciolo
acaraciolo

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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.
Avatar of acaraciolo
acaraciolo

ASKER

I wouldn't presume to rate my own ineptness with an A or B.