VB Help
Results 1 to 7 of 7

Thread: VB Help

  1. #1
    Senior Member
    Join Date
    Jan 2003
    Posts
    1,499

    VB Help

    I need a wee bit of help here.

    I have a vb program I have written but I need to make the background of a picture box transparent.

    The form colour varies so the background can't just be matched this way.

    Any ideas guys ?

  2. #2
    Antionline Herpetologist
    Join Date
    Aug 2001
    Posts
    1,165
    Why not change the backgound colour in the same function that changes the form colour?
    Cheers,
    cgkanchi
    Buy the Snakes of India book, support research and education (sorry the website has been discontinued)
    My blog: http://biology000.blogspot.com

  3. #3
    Senior Member
    Join Date
    Jan 2003
    Posts
    1,499

    Could work but

    Form can also be transparent.

    It has to be real transparency.

  4. #4
    Senior Member
    Join Date
    Sep 2001
    Posts
    1,027
    Use the "image" control instead... (the picture box and the image (box) are pretty much interchangeable in most cases... although the image control can't serve as a container...)

    Ammo
    Credit travels up, blame travels down -- The Boss

  5. #5
    Senior Member tampabay420's Avatar
    Join Date
    Aug 2002
    Posts
    953
    ammo is right, i'd use a Image control. it can stretch, will show transparency...

    Originally posted here by ammo
    Use the "image" control instead... (the picture box and the image (box) are pretty much interchangeable in most cases... although the image control can't serve as a container...)

    Ammo
    yeah, I\'m gonna need that by friday...

  6. #6
    Senior Member
    Join Date
    Jan 2003
    Posts
    1,499

    What Now

    I swaped out the pic box for image box how do I make it show the background as transparent ?

  7. #7
    Senior Member tampabay420's Avatar
    Join Date
    Aug 2002
    Posts
    953
    the image box will display the picture as is, so if the picture is not a semi-transparent GIF image than there is no way to make it trans... if it is a gif? it should do it default...

    /edit

    i've included an example picture
    yeah, I\'m gonna need that by friday...

Posting Permissions

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