Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $label = new-object system.windows.forms.label
  2. $label.text = "hello"
  3. $label.forecolor = "white"
  4. $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")
  5. $_.graphics.fillrectangle($brush,$this.clientrectangle)
  6. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement