I'm Drawing Rectangle using `Grahpics` Class(GDI+).
And I have set the form's opacity to 30%.
this is my code.
Graphics gr = e.Graphics;
Pen pen = new Pen(new SolidBrush(Color.FromArgb(255,Color.Red)),1);
but.. Pen Opacity is 30% too!
I'm so want the original color.
how can i do?
It's not possible with windows forms. A partially transparent form cannot have opaque controls (or drawings). You could use two form approach, one fully transparent with opaque controls over another partially transparent form. You can also use windows transparency key of opaque form to hide unwanted area Or Use simply use WPF. Hope this helps
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)