Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In VB6, is it possible to make the form transparent and just have the controls solid? My googling efforts came up with only ways to make the whole project transparent. I need the background of the form to disappear, but the controls on it to remain visible (unless of course they're supposed to be invisible). Basically I want the whole thing to look like a widget instead of a window. I have all the controls pasted onto several rounded rectangle shapes, but I want to make the background form invisible.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 14-Dec-11 1:00am    
VB6? Seriously? It's up to you, but I would advise -- forget it.
--SA

use opacity property in the form properties it will done. In case any doubts please refer this link
 
Share this answer
 
Comments
Kevnar 14-Dec-11 3:20am    
There's no Opacity property in a form in VB6. :-( Would it were so easy.
Have a look here[^].
 
Share this answer
 
Comments
Kevnar 14-Dec-11 3:24am    
Actually, I looked at it again and there's an option in there to leave the controls visible. Awesome! As soon as I test it, I'll let you know if this is the solution I needed!
Hi,
Try this if could help...

In your client code example:

C#
<head runat="server">
    <title></title>
    <style type="text/css">
        .AlgemBackground
        {
            background-color: #000000;
            opacity: 0.75;
            filter: alpha(opacity=70);
        }
    </style>
</head>


C#
BackgroundCssClass="AlgemBackground"


Regards,
 
Share this answer
 
Comments
Abhinav S 14-Dec-11 1:16am    
This is not VB6.
Al Moje 14-Dec-11 5:06am    
Oh! So you are using VB6, sorry i thought it was a web.
My example is a web base... (asp.net)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900