Results 1 to 4 of 4

Thread: Semi Transparent Screen ( Picture Control) Visual Basic

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    6

    Semi Transparent Screen ( Picture Control) Visual Basic

    Hi All,

    Please help me out in to achive the semi transparent effect for picture box.
    Find the attached screen shots which is wat the exact requirement.

    Images should look like disabled i.e, there should be some layer (blueish) on the whole
    Assign Stamp Art part as shown in Snap1.bmp.

    This is very urgent.....

    SVH
    Attached Files Attached Files

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Semi Transparent Screen ( Picture Control) Visual Basic


  3. #3
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    Re: Semi Transparent Screen ( Picture Control) Visual Basic

    I have a button behind the picture box, is it possible that the picture box can be semi transparent so I can see the button?

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

    Re: Semi Transparent Screen ( Picture Control) Visual Basic

    Unfortunately, child windows on a form cannot be made semitransparent. With Win2K and above entire windows can be, but not individual child controls.

    One workaround and it is not a great workaround is to use a secondary form. On that borderless form is a picturebox control. You can make the entire form, including the picturebox semitransparent, and then position that form over the main form, and finally show it as owned (i.e., otherForm.Show , Me). This will give you exactly what you are asking for visually, but has major disadvantages. Keeping the two forms in sync when one is moved is difficult without subclassing and can be choppy. Clicking on the semitransparent form/picturebox makes the main form display as not having focus, and other issues may apply too.

    Note: If the picturebox is not to be clicked, you can apply the WS_EX_TRANSPARENT style to the semitransparent form and it wil not be clickable and all clicks will be sent to the window underneath it.

    Edited: Maybe this isn't needed just to show something as "grayish/bluish". Can you describe in more detail what is to be displayed and what controls you are using? There may be other, simpler, options.
    Last edited by LaVolpe; Apr 17th, 2009 at 09:44 AM.
    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}

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