开发者

transparency in windows forms C#

if the transparentkey property is used to make the top level form transparent,it works , but it also makes the main 开发者_如何学Cform click-throughable. I want the opposite of this, that the form becomes transparent, but is still able to recieve clicks. can this be done ?


Here is een solution. The form is totaly transparent and still clickable.


There is also

myform.Opacity = .75

.. which you can change as required. It may work better depending on your needs - you don't state whether its the whole form or only part of it you want transparent. Also, from MSDN on TransparencyKey:

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.

.. so it would seem that wont help you at all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜