简体   繁体   English

C#如何设置透明键并且不允许点击?

[英]C# How to set Transparent key and do not allow click-through?

Well, I know how to set the transparent key, 好吧,我知道如何设置透明键,

but if i click the transparent region, it clicks through the form. 但是,如果我单击透明区域,它将单击表单。 is it possible to disabling click through? 是否可以禁用点击功能?

hmm.. I think this question is similar as C# Winforms Transparent Control allowing Clickthrough 嗯。。我认为这个问题类似于允许点击的C#Winforms透明控件

but i do not understand the answer, what value should i change to 1??? 但我不明白答案,我应该将什么值更改为1 ???

Opacity . Opacity Which controls general transparency of the form and it's only see-through, not click-through (unless 0 is used). 它控制表单的一般透明度,并且仅是透明的,而不是单击的(除非使用0 )。

However, your form will be (very faintly) visible using that method. 但是,使用该方法,您的表单将(非常模糊)可见。

It's a bit more complex to make only a region of the form transparent this way, though. 但是,以这种方式仅使表单区域透明是有点复杂。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM