473,490 Members | 2,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MDI Container BackColor

Lee
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 advance
lee
Jul 9 '06 #1
2 4206
Lee
no worries, I have sorted it

lee
"Lee" <le*****@hotmail.comwrote in message
news:Og**************@TK2MSFTNGP05.phx.gbl...
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 advance
lee

Jul 9 '06 #2
There are other ways, but the MDIClient is the first control added to the
form and so unless you have messed around with zOrder it's as simple as:

this.Controls[this.Controls.Count - 1].BackColor = someColor;

is that how you solved it?

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Lee" <le*****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
no worries, I have sorted it

lee
"Lee" <le*****@hotmail.comwrote in message
news:Og**************@TK2MSFTNGP05.phx.gbl...
>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 advance
lee


Jul 9 '06 #3

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

Similar topics

3
4978
by: Nick Moore | last post by:
This may be the wrong newsgroup for this question. I'm trying to develop a container control inherited from a panel that I can 'Roll Up' and 'Roll down' on a button click. The component is to be...
2
7748
by: Bergsvein Vollan | last post by:
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...
5
724
by: bg | last post by:
Hi! How do I check if "date" exists before using that code? I've built a RSSreader and sometimes there's a date in it and sometimes not. How can I check if it exists to avoid crash...
6
3412
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...
5
2537
by: Francois Soucy | last post by:
Hi all! I've created a personal control. This control is mainly a panel with some other stuff in. I want to know if it's possible to know the size of the container of this control? I mean that my...
2
6244
by: Wade | last post by:
Is there a way in VB.NET to use a PicureBox as a container like in VB 6? I have an image that I want to place in a container and have transparent labels "float" on top of the image and use them as...
5
4931
by: .Net Sports | last post by:
I'm having problems trying to get a record out of a resultset when working with a Datalist control. <%# Container.DataItem( "myfield" )%is how I am displaying the field , but when trying to do an...
9
7978
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have a MDI Container Form, with one label control on the Background of this container form. When I now open a child form, this form is behind the label ... and this looks ugly ... :-))...
0
1228
by: Franck | last post by:
I need a container that support opacity so i can by code, instantiate, dock.fill on a form and bring to front. I would in other word prevent people from cliking anything on the form and allow me to...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7142
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
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6847
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
3078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.