Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
Dim b As Brush
b = New Drawing2D.LinearGradientBrush(New Point(0, 0), New Point(Panel1.Width, 0), Color.Black, Color.White)
e.Graphics.FillRectangle(b, Panel1.ClientRectangle)
b.Dispose()
End Sub
private void panel1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
Brush b;
b = new System.Drawing.Drawing2D.LinearGradientBrush(new Point(0, 0), new Point(panel1.Width, 0), Color.Black, Color.White);
e.Graphics.FillRectangle(b, panel1.ClientRectangle);
b.Dispose();
}