Solved

MDI Parent Form Background

Posted on 2009-03-29
2
251 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

789 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