Nick, I've pasted the code you recommended in the form paint event to mimic the background used in vs2010 and I'm getting a couple of errors. Below is the code I've pasted:
The two errors I'm getting are Type 'HatchBrush' is not defined.Code:Private Sub frmMain_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Using h1 As New HatchBrush(HatchStyle.Percent20, Me.ColorTable.BackgroundDotsLight, Me.ColorTable.Background) e.Graphics.FillRectangle(h1, e.ClipRectangle) End Using Using h2 As New HatchBrush(HatchStyle.Percent20, Me.ColorTable.BackgroundDotsDark, Color.Transparent) e.Graphics.RenderingOrigin = New Point(0, -1) e.Graphics.FillRectangle(h2, e.ClipRectangle) e.Graphics.RenderingOrigin = Point.Empty End Using End Sub
Any help would be greatly appreciated.
Thanks
Ron




Reply With Quote