View Single Post
  #2  
Old 26-03-2007, 07:57 PM
Skeletron (Offline)
New Member
 
Join Date: Feb 2007
Posts: 2
Skeletron is an unknown quantity at this point
Default

Lol, I laughed when I saw this. In the form designer it is not possible to change the color/background image in the MDIContainer so you have to use code. This was a function I built for myself but I never got around to using it.

foreach (Control hi in this.Controls)
{
if (hi is MdiClient)
{
hi.BackgroundImage = Image.FromFile("C:" + (Char)47 + "Documents and Settings" + (Char)47 + "All Users" + (Char)47 + "Documents" + (Char)47 + "My Pictures" + (Char)47 + "Sample Pictures" + (Char)47 + "Blue hills.jpg");

}
}
Reply With Quote