473,544 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
+ 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 4211
Lee
no worries, I have sorted it

lee
"Lee" <le*****@hotmai l.comwrote in message
news:Og******** ******@TK2MSFTN GP05.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.C ount - 1].BackColor = someColor;

is that how you solved it?

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

lee
"Lee" <le*****@hotmai l.comwrote in message
news:Og******** ******@TK2MSFTN GP05.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
4983
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 available from the toolbox. The first time I dragged the control from the toolbox onto a form and added other toolbox components to it in design...
2
7750
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 MDIContainer with a colored background? Bergsvein Vollan
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 (DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name date) <asp:DataGrid id="RssNewsGrid"
6
3415
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 TO HIGHLIGHT ROW Sub Datagrid_ItemCommand(ByVal s As Object, ByVal e As DataGridCommandEventArgs) If e.CommandName = "ViewUnitRequest" Then...
5
2544
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 control can be put on a form or a panel. I want to know the size of the container without knowing what will be exactly. It' possible? Thank a lot...
2
6259
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 buttons. In VB 6, I used a PictureBox and that worked fine. In VB.NET, the labels background shows the same as the forms backcolor, not whatever...
5
4935
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 If ..then..end if condition and referring to a field in the resultset while inside the <asp:datalist</ asp:datalistenvironment, can't find anything...
9
7992
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 ... :-)) When I set the label with "SendToBack", it completely disapears. I also tried to set the child form like "BringToFront" but this also does not...
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 show some extra controls such as progress bar if the form is loading or working, add/edit informations. I manage to make a panel invisible by...
0
7417
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7763
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7365
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7701
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5901
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5289
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3402
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
983
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
654
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.