Solved

MDI Parent Form Background

Posted on 2009-03-29
2
249 Views
Last Modified: 2012-05-06
I am building a windows forms application in Visual Basic.Net in VS 2005. I have one form set up as the MDI parent form. Regardless of what color I set the background of the MDI parent to, it comes up as a dark gray. At run time the background is transparent so that when there are no child forms open you can see others apps in the background.

I can get the form to tile an image as the background but that is not how I want to form to look. How can I set the background color of an MDI form?

Thanks.
0
Comment
Question by:GIANTOCR
2 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 24012594
You can do like this (in form load for example):
        For Each c As Control In Me.Controls

            If TypeOf c Is MdiClient Then

                c.BackColor = Color.BlanchedAlmond

            End If

        Next

Open in new window

0
 

Author Closing Comment

by:GIANTOCR
ID: 31564022
That did it. Thank you.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now