- Код: Выделить всё
 Private Sub MainFrm_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
 Dim Gr As New LinearGradientBrush(e.ClipRectangle, Color.DodgerBlue, Color.RoyalBlue, LinearGradientMode.Horizontal)
 e.Graphics.Clear(Drawing.SystemColors.Control)
 e.Graphics.FillRectangle(Gr, New Rectangle(0, 0, Me.Width, Me.Height))
 e.Graphics.FillRectangle(Gr, e.ClipRectangle)
 End Sub
Но при изминение размера под контролами остаются пятна
 
как от них избавится, как перерисововать поверх старого?




 
 




