Tutorial :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 form 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.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »