VB中的透明表单 [英] Transparent forms in VB

查看:57
本文介绍了VB中的透明表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VB6中,是否可以使窗体透明并且仅使控件牢固?我的Google搜索工作仅提出了使整个项目透明的方法.我需要表格的背景消失,但要使表格上的控件保持可见(当然,除非它们应该是不可见的).基本上,我希望整个事情看起来像小部件而不是窗口.我已将所有控件粘贴到几个圆角的矩形形状上,但我想使背景窗体不可见.

在此先感谢.

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.

推荐答案

在将要使用的表单属性中使用opacity属性.如有任何疑问,请参考此链接
use opacity property in the form properties it will done. In case any doubts please refer this link


看看此处 [


如果可以的话请尝试...

在您的客户代码示例中:

Hi,
Try this if could help...

In your client code example:

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





BackgroundCssClass="AlgemBackground"



问候



Regards,


这篇关于VB中的透明表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆