Gradient Background For Label Control Powershell
<p>I am trying to create a gradient background for my label control in powershell. I am able to create the gradient background but the text of the control is covered by the gradient. this is what I have so far:</p>

<pre><code>    $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)
    })
</code></pre>

<p>Thank you for any help!</p>