Since you do not have a System.Windows.Forms.PaintEventArgs
error, I'm just wondering if you have set the background in a
Panel1.paint subroutine?
Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
If yes, then please show some code and where the error occurs!