Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $label = new-object system.windows.forms.label
- $label.text = "hello"
- $label.forecolor = "white"
- $label.add_paint({$brush = new-object System.Drawing.Drawing2D.LinearGradientBrush((new-object system.drawing.point 0,0),(new-object system.drawing.point($this.clientrectangle.width,$this.clientrectangle.height)),"black","white")
- $_.graphics.fillrectangle($brush,$this.clientrectangle)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement