MDI Container and BackColor Problem


T

Tom Unkefer

If I set my form's IsMdiContainer property to TRUE at
design time, the form's BackColor automatically changes to
a dark gray. Setting the BackColor property to something
else has no effect.

If I set IsMdiContainer property to FALSE, I can control
the BackColor both at design time and runtime. But adding
the following to the form's load method:
Me.IsMdiContainer = True
causes the form to revert back to the dark gray at
runtime. Including something like
Me.BackColor = System.Drawing.Color.LightGray
has no effect.

Since no one has raised this question here, I must be
missing something pretty obvious. How can I control my
MDI container form's BackColor?

Thanks,
Tom
 
Ad

Advertisements

Ad

Advertisements

T

Tom Unkefer

Herfried,

Thanks for the reply.

My reading of the article you cited is that it deals with
controlling the appearance of the client form, ie.,
the "contained" form, not the "container" form. I assume
that the technique in the article will work for the
container form too?

In any event, nullifying a form's BackGround property when
it is an MDI container is a rather suprising "feature".

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top