Results 1 to 7 of 7

Thread: Transparent control (or picture background)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Craiova, Romania
    Posts
    140

    Transparent control (or picture background)

    I need to do an interface like in picture attach.
    I use o VSFlexGrid and a container picturebox to store command button.
    But i need container(picturebox) to see semi-transparent like in picture below.

    Please HELP,
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Transparent control (or picture background)

    I assume this is something like a popup...

    Make them buttons on to a separate form...

    Then make the form transparent/translucent and position it to where needed..

    Search for those terms (transparent/translucent) and you should get an answer...
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Craiova, Romania
    Posts
    140

    Re: Transparent control (or picture background)

    Thank you...i'm thinking of that...but from one reason i want to do using a picture box.
    So ... the question remain..

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Transparent control (or picture background)

    If you want to use a picturebox you will want to create a window region for the picturebox to cutout everything but the controls.

    You can also use a usercontrol, place your controls in it and set the usercontrol's backstyle to transparent.

    Or you can use the suggestion by some1uk03
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Craiova, Romania
    Posts
    140

    Re: Transparent control (or picture background)

    OK LaVolpe i understant....I want to use a picturebox and do it semi-transparent (like in image attach)
    Can you post a little sample please!
    Than you

  6. #6
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Transparent control (or picture background)

    There is no semitransparency for controls. To fake semitransparency, you need to copy the form's background image/graphics use AlphaBlend or GDI+ APIs to render semitransparency onto the picturebox. The simplest solution was provided by some1uk03 in post #2, i.e., use a separate borderless form, place your controls on that and the SetWindowLayerAttributes API then overlay that form over your main form. This will work for Win2K & above.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Craiova, Romania
    Posts
    140

    Re: Transparent control (or picture background)

    Thank you.... I will do this...

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