Here's some more succinct code that uses extension methods and, therefore, requires .NET 3.5 or later:CSharp Code:
private void Form1_Load(object sender, EventArgs e) { // Get a reference to the one and only MdiClient in the Controls collection. MdiClient client = this.Controls.OfType<MdiClient>().Single(); // Set properties of the MdiClient here, e.g. client.BackgroundImage = Properties.Resources.MdiBackgroundImage; }




Reply With Quote