Results 1 to 5 of 5

Thread: Transparency doesn´t work.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Stockholm, Sweden
    Posts
    316

    Transparency doesn´t work.

    Hi,

    I have a form, which has the background color set to the transparency key color. On the form there is a picturebox with transparent backcolor and a picture that is semi transparent.

    Unfortunately the transparency doesn´t work. The form shows with a background, but not the background color I chose, but the gray control color. Nothing is transparent.

    The EXACT same thing works with another form. Does anyone know whats going on?

    Fuga.
    Visual Studio 2010 xpress, Visual Studio 2008 pro, SQL Server, SQL Server management studio 2008 r2, MSAccess

  2. #2
    Lively Member
    Join Date
    Jan 2011
    Posts
    127

    Re: Transparency doesn´t work.

    Down the bottom of the form properties you will see a property called "Transparency" Set this to the colour you want to become transparent. Then set your forms background colour to this colour also.

    Voila! Transparency achieved
    EXPERIENCED VB6 CODER
    IF YOU SEE ANY FAILURE IN MY CODING, PLEASE LET ME KNOW AS I'VE ONLY JUST STARTED LEARNING VB.NET AND I WILL APPRECIATE ANY HINTS AND TIPS YOU HAVE TO OFFER!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Stockholm, Sweden
    Posts
    316

    Re: Transparency doesn´t work.

    Thanks for your reply.

    But the thing is I´ve done just that, and it doesn´t work. On the other form, yes, but on this one, no.

    Any ideas?

    Fuga
    Visual Studio 2010 xpress, Visual Studio 2008 pro, SQL Server, SQL Server management studio 2008 r2, MSAccess

  4. #4
    Lively Member
    Join Date
    Jan 2011
    Posts
    127

    Re: Transparency doesn´t work.

    Can you create a new form, copy the code and control over and delete the old form?
    See if the new forms works?
    EXPERIENCED VB6 CODER
    IF YOU SEE ANY FAILURE IN MY CODING, PLEASE LET ME KNOW AS I'VE ONLY JUST STARTED LEARNING VB.NET AND I WILL APPRECIATE ANY HINTS AND TIPS YOU HAVE TO OFFER!

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Stockholm, Sweden
    Posts
    316

    Re: Transparency doesn´t work.

    Hi again,

    sorry for the delay and thanks for your help. But unfortunately it doesn´t work, even though I tried to create a new form with the same name, and also with a different name. When renaming it at least the transparency key color is showing. Not transparent though.

    Anyone else had this problem?

    Fuga.
    Visual Studio 2010 xpress, Visual Studio 2008 pro, SQL Server, SQL Server management studio 2008 r2, MSAccess

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