473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

BackColor on MDI container

I have a form with a certain BackColor. I'd like it to be
an MDIContainer but as soon as I set the IsMDIContainer
property to true my BackColor becomes gray.

Isnt it possible to have an MDIContainer with a colored
background?

Bergsvein Vollan
Nov 15 '05 #1
2 7746
Override the background painting handler and draw whatever you want.

Oscar.

"Bergsvein Vollan" <Be**************@shipnet.no> wrote in message
news:0c****************************@phx.gbl...
I have a form with a certain BackColor. I'd like it to be
an MDIContainer but as soon as I set the IsMDIContainer
property to true my BackColor becomes gray.

Isnt it possible to have an MDIContainer with a colored
background?

Bergsvein Vollan

Nov 15 '05 #2
"Bergsvein Vollan" <Be**************@shipnet.no> wrote:
I have a form with a certain BackColor. I'd like it
to be an MDIContainer but as soon as I set the
IsMDIContainer property to true my BackColor
becomes gray.
Isnt it possible to have an MDIContainer with a
colored background?


You need to set the background of the MdiClient, not the MdiContainer.

foreach (Control ctl in this.Controls)
{
if (ctl.GetType() == typeof(MdiClient))
{
ctl.BackColor = Color.Blue;
}
}

P.

--
www.CL4.org
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Henrik | last post by:
Hi how can i make the backcolor of a form transparent best regards Henrik
2
by: perspolis | last post by:
HI I created a user control and place some control on it. I need when I change BackColor of user control,Back Color of other controls also change.. I used foloowing code: public override Color...
6
by: LU | last post by:
A)I build a datagrid based on a calendar date selection. B)When user clicks a button column on the datagrid I want to highlight this row. I use the code below to highlight the row. ***** CODE...
2
by: Steve Ford | last post by:
I have a datagrid that contains the following template column: <ItemTemplate> <asp:HyperLink ID="partyColour" Runat="server" BackColor='<%#...
1
by: Firewalker | last post by:
I am attempting to change the backColor property on the previously instantiated buttons FROM a listbox_doubleClick event. I thought it would be something like this: If...
0
by: Sourav Dutta Gupta | last post by:
How can I set the BackColor of an ImageButton dynamically. Actually, I am getting colors as a string like "#FF00FF". I want them to set as BackColor to the imagebuttons at runtime. I have tried...
4
by: ray well | last post by:
in my app i need to make a RichTextbox control transparent. i need it to be a like a pane of glass lying on a sheet of paper, where u can see everything on the sheet of paper not covered by text...
2
by: Lee | last post by:
Hi, I have an MDI app, and want to change the containers back color to something other than the default grey. The backcolor property does not appear to work on MDI containers. thanks in...
1
by: Cartoper | last post by:
I am working in VS2008. I have a TabControl on a form. The background color of the TabControl is not the standard KnownColor.Control color, it is a lighter color. I have placed a TrackBar on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.