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
Post a Comment