C#的TransparencyKey属性有什么用,怎么用

 我来答
lesleyin
2007-10-01 · 超过17用户采纳过TA的回答
知道答主
回答量:43
采纳率:0%
帮助的人:0
展开全部
When the TransparencyKey property is assigned a Color, the areas of the form that have the same BackColor will be displayed transparently. Any mouse actions, such as the click of the mouse, that are performed on the transparent areas of the form will be transferred to the windows below the transparent area. For example, if the client region of a form is made transparent, clicking the mouse on that area would send the event notification of the click to any window that is below it. If the color assigned to the TransparencyKey property is the same as any controls on the form, they also will be displayed transparently. For example, if you have a Button control on a form that has its TransparencyKey property set to SystemColors.Control, the control will be displayed transparently unless the BackColor property of the Button control is changed to a different color.

This property is not supported when RightToLeftLayout is true.

参考资料: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref17/html/P_System_Windows_Forms_Form_TransparencyKey.htm

本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
束凡0a0
2007-09-30 · 超过15用户采纳过TA的回答
知道答主
回答量:85
采纳率:0%
帮助的人:24.7万
展开全部
msdn这个绝对有的

参考资料: 大脑 基本常识

已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式