?
Solved

Forms, images

Posted on 2013-05-21
4
Medium Priority
?
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

762 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