Labels Hidden behind Picture and Image

Posted on 2005-05-16
Last Modified: 2010-05-01
I know the first question from you all will be "Why on earth do you want to do such a thing".  Please refer to this question for the extended explanation.

The short explanation is that there is no way to set the background color or even a background graphic on an MS Tabbed Dialog Control.  The user of the VB6.0 app wants to "pretty up" the screen so I need to get some background on the panels of my Tabs.  I have done what is suggested in the answer to the above question, which is:

Another thing...
First place the PictureBox
Then Click the PictureBox to select it.
Now place a Imagebox of same size.
Set its Stretch property to True.
Now place any image on the Imagebox.
It will resize the image automatically

It works pretty well but all of my labels are now hidden.  I can get my text boxes and command buttons to appear on top of the picture/image but not the labels.  Is there any way to get the labels on top?

My fallback is to change all of the labels into textboxes but there are many of them and it would be a royal pain.  I am hoping there is another way.

Question by:mlcktmguy
    LVL 29

    Expert Comment

    Right click on the label and choose the option to bring to front.  and right click the image and choose the option send to back.

    Some controls will overlap a label ie..frames , picturebox, textbox,etc.. I am not sure if the label goes over the image control however you can write text onto the picturebox transparently or as a color.

    Private Sub Form_Click()
        Picture1.FontTransparent = True
        Picture1.FontSize = 12
        Picture1.ForeColor = vbBlack
        Picture1.Print "This text will be printed on a picturebox transparently"
    End Sub
    LVL 1

    Author Comment

    Thanks for the comment.  My results:
    Send to back is possible with the Picture, it makes the textboxes and command buttons show but not the labels.
    Send to back is not possible with the image.

    Sending the Labels to the Front does not resolve the issue.
    LVL 8

    Accepted Solution

    Put the labels in the picturebox and then do bring to front
    LVL 1

    Author Comment

    You are correct, there are no shortcuts.  Labels must be placed in the picturebox.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    Mysql vs Oracle 10 103
    vba find the last empty column 10 71
    DIR issue 7 38
    Excel VBA, find a string in a column, update a cell 7 0
    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…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    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…

    779 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