可以在组件内调整不透明度/透明度吗? [英] Can opacity/transparency be adjusted within components?

查看:149
本文介绍了可以在组件内调整不透明度/透明度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以改变整个表单的不透明度,但是有一种

的方法来控制对特定控件或组件的不透明度吗?


例如,我想创建一个半透明的表单(也许

看起来像一张绿色玻璃)但顶部有元素或图形

我想要是不透明的。也许我希望这张玻璃板能够写入或者其他图形涂漆。在表面上。是否有某种方式

在表单中混合不同的透明度?

I know that I can change the opacity of an entire form, but is there a
way to control opacity to specific controls or components?

For example I want to create a form that is semi-transparent (maybe
looks like a sheet of green glass) but has elements or graphics on top
that I want to be opaque. Perhaps I want the sheet of glass to have
writing or other graphics "painted" on the surface. Is there some way
to mix varying transparencies within a form?

推荐答案

http://www.kjmsolutions.com/downloads/transparent.zip


我希望这能让你入门。


-

使用KJM获取功能强大的网络,数据库,应用程序和电子邮件托管

解决方案
http://www.kjmsolutions.com


Patrick Dugan < PA ****** @ netins.net>在消息中写道

新闻:uW ************** @ TK2MSFTNGP09.phx.gbl ...
http://www.kjmsolutions.com/downloads/transparent.zip

I hope this gets you started.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Patrick Dugan" <pa******@netins.net> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
我知道我可以改变整个表单的不透明度,但有没有办法控制不透明度到特定的控件或组件?

例如我想创建一个半透明的表单(也许看起来
就像一张绿色玻璃)但顶部有元素或图形,我想要不透明。也许我希望玻璃板上有书写或其他图形涂漆。在表面上。有没有办法在表单中混合不同的透明度?
I know that I can change the opacity of an entire form, but is there a way
to control opacity to specific controls or components?

For example I want to create a form that is semi-transparent (maybe looks
like a sheet of green glass) but has elements or graphics on top that I
want to be opaque. Perhaps I want the sheet of glass to have writing or
other graphics "painted" on the surface. Is there some way to mix varying
transparencies within a form?



这很有趣,但不是我想要的。我希望表单是透明的,因此桌面背景会显示出来,而

同一表单上的其他元素都是不透明的。


vbnetdev写道:
That is interesting but not what I was wanted. I want the form to be
transparent so that the desktop background appears through it while
other elements on that same form are opaque.

vbnetdev wrote:
http:// www.kjmsolutions.com/downloads/transparent.zip

我希望这能让你入门。
http://www.kjmsolutions.com/downloads/transparent.zip

I hope this gets you started.



你好Patrick,


表单上具有与表单的

TransparencyKey属性相同的BackColor属性的任何控件都将显示为Transparent。所有

其他控件将显示为不透明。因此,首先将表单'

透明度键属性设置为特定颜色。然后将Form''s

BackColor设置为与TransparencyKey颜色相同的颜色。现在,要显示

任何控件为不透明,请确保它的BackColor不同于Form'的

BackColor。


HTH,

Cerebrus。

" Patrick Dugan" < PA ****** @ netins.net>在留言中写道

news:43 ************** @ netins.net ...
Hi Patrick,

Any controls on a form that have the same BackColor property as the
TransparencyKey property of the Form will be displayed Transparent. All
other controls will be displayed Opaque. So, firstly set your Form''s
Transparency Key property to a particular color. Then set your Form''s
BackColor to the same color as the TransparencyKey color. Now, to display
any control as opaque, make sure it''s BackColor is different from the Form''s
BackColor.

HTH,

Cerebrus.
"Patrick Dugan" <pa******@netins.net> wrote in message
news:43**************@netins.net...
这很有趣但不是我的意思被通缉。我希望表单透明,以便通过它显示桌面背景,而同一表单上的其他元素是不透明的。

vbnetdev写道:
That is interesting but not what I was wanted. I want the form to be
transparent so that the desktop background appears through it while
other elements on that same form are opaque.

vbnetdev wrote:
http://www.kjmsolutions.com/downloads/transparent.zip

我希望这能让你开始。
http://www.kjmsolutions.com/downloads/transparent.zip

I hope this gets you started.



这篇关于可以在组件内调整不透明度/透明度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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