Solved

Forms, images

Posted on 2013-05-21
4
128 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I wouldn't presume to rate my own ineptness with an A or B.
0

Featured Post

Highfive Gives IT Their Time Back

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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

11 Experts available now in Live!

Get 1:1 Help Now