Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MDI Parent Form Background

Posted on 2009-03-29
2
Medium Priority
?
255 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 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…
Suggested Courses

596 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