winforms - semi-transparent form but opaque Controls in C# -


how make semi transparent form in c# windows form application

i have tried transparentkey makes full-transparent. , tried opacity effects whole form (with controls).

i want form part semi-transparent not controls.

you can use hatch brush percentage, example:

    using system.drawing.drawing2d;      private void form1_paint(object sender, painteventargs e)     {         var hb = new hatchbrush(hatchstyle.percent50, this.transparencykey);          e.graphics.fillrectangle(hb,this.displayrectangle);     } 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -