private void Form1_Load(object sender, EventArgs e)
{
groupBox1.BackColor = Color.Transparent;
groupBox2.BackColor = Color.Transparent;
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
Control control = (Control)sender;
Graphics g = e.Graphics;
g.Clear(Color.White);
Color startColor = Color.FromArgb(106, 127, 156);
Color endColor = Color.FromArgb(177, 197, 218);
using (LinearGradientBrush darkBrush = new LinearGradientBrush(control.ClientRectangle, startColor, endColor, LinearGradientMode.Vertical))
{
g.FillRectangle(darkBrush, control.ClientRectangle);
}
}
|