Bitmap myBitmap = null;
MdiClient client = null;
private void Form1_Load(object sender, System.EventArgs e)
{
myBitmap = new Bitmap(@"c:\windows\coffee Bean.bmp");
SetStyle(ControlStyles.ResizeRedraw, true);
foreach(Control c in Controls)
{
if (c is MdiClient)
{
client = (MdiClient)c;
break;
}
}
if (client != null)
client.Paint += new PaintEventHandler(PaintMdiClient);
}
private void PaintMdiClient(object sender, PaintEventArgs e)
{
e.Graphics.DrawImage(myBitmap, client.Bounds);
}