Solved

MDI Parent Form Background

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Basic Excel Formatting error 4 141
Put text in a picture ASP.NET C# 2 68
Passing a Text Box name to a Sub 6 102
VBA: copy range dynamically based on config sheet v3 6 33
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…

733 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