You need to get a reference to the MdiClient control that is embedded in your parent form and hosts the child forms. You then handle the Paint event of that, rather than the form. The following code uses the improved drawing code that I posted in that last thread of yours. Note the use of the OfType and First extension methods to get the MdiClient reference.
vb.net Code:
  1. Public Class Form1
  2.  
  3.     Private WithEvents client As MdiClient
  4.  
  5.     Private Sub Form1_Load(ByVal sender As Object, _
  6.                            ByVal e As EventArgs) Handles MyBase.Load
  7.         Me.client = Me.Controls.OfType(Of MdiClient).First()
  8.     End Sub
  9.  
  10.     Private Sub client_Paint(ByVal sender As Object, _
  11.                              ByVal e As PaintEventArgs) Handles client.Paint
  12.         Using Brush As New Drawing2D.LinearGradientBrush(Me.client.Bounds, _
  13.                                                          Color.FromArgb(0, 58, 140), _
  14.                                                          Color.FromArgb(0, 215, 255), _
  15.                                                          Drawing2D.LinearGradientMode.Vertical)
  16.             e.Graphics.FillRectangle(Brush, Me.client.Bounds)
  17.         End Using
  18.     End Sub
  19.  
  20. End Class