Results 1 to 7 of 7

Thread: how to make a picturebox transparent (not the picture in it ,to the controls behind)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    166

    how to make a picturebox transparent (not the picture in it ,to the controls behind)

    how to make a picture box transparent as it shows the controls behind it and the controls in it..
    ex: i have to command buttonsm infront of them a picture box, in that picture box another command button, i want the picture to boe transparent as it shows only the command button in it and also the two behind it..
    thanks..

  2. #2
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Re: how to make a picturebox transparent (not the picture in it ,to the controls behind)

    I doubt if theres a simple way to do that.You can take a look at bushmobile's glass form and see if that helps.(Check his signature)
    __________________
    ________________0îîî___
    ___îîî0________(___)____
    __(___)_________) _/_____
    ___\_ (_________(_/______
    ____\_)_________________

  3. #3
    Addicted Member DanCool999's Avatar
    Join Date
    Jul 2006
    Posts
    141

    Re: how to make a picturebox transparent (not the picture in it ,to the controls behind)

    Yes there is a way i found this transparent picturebox control a while ago and have been using to for years. It is very customizable code but you can add more functions to it if you need too. It is a User Control. See attached.

    Enjoy
    Attached Files Attached Files
    Dan " "

    Visual Basic Professional 6.0

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    166

    Re: how to make a picturebox transparent (not the picture in it ,to the controls behind)

    i got tohe tool but when i try calling a picture into it using code it doesn't work, any suggestionns?

  5. #5
    Addicted Member DanCool999's Avatar
    Join Date
    Jul 2006
    Posts
    141

    Re: how to make a picturebox transparent (not the picture in it ,to the controls behind)

    when you load a picture do this:

    VB Code:
    1. set TransPicBox1.picture = loadpicture("C:\mypic.bmp")

    Remember to set the maskcolor to the transparent part. Like if your image has a white backround and you want that transparent make the maskcolor white.
    Dan " "

    Visual Basic Professional 6.0

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2005
    Posts
    166

    Re: how to make a picturebox transparent (not the picture in it ,to the controls behind)

    it worked! thanks so much...

  7. #7
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: how to make a picturebox transparent (not the picture in it ,to the controls behind)

    Nice piece of work!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width