Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void OnPaintBackground(PaintEventArgs e)
- {
- // do nothing
- }
- protected override void OnPaint(PaintEventArgs e)
- {
- Color c = Color.FromArgb((int)(Opacity * 255), this.BackColor);
- e.Graphics.FillRectangle(new SolidBrush(c), this.ClientRectangle);
- base.OnPaint(e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement