?
Solved

MDI Parent Form Background

Posted on 2009-03-29
2
Medium Priority
?
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

764 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