I'm new to VB.net and I can't figure out how to change the background color to a MDI Child form. Even though I change the color...it doesn't do anything.
Printable View
I'm new to VB.net and I can't figure out how to change the background color to a MDI Child form. Even though I change the color...it doesn't do anything.
If you're talking about the background colour of the client area of an MDI parent form then it can't be done. That's because what you see is not the background of the form. It's an MdiClient control that occupies the entire client area and it is that control that actually hosts the child forms. There is no access to this control at design time because you are not intended to mess with it. If you want to make changes to it you have to get a reference to it at run time. I've posted code to do this many times before. Search the forum for "mdiclient" with my user name and you'll get several hits.
JM,
I saw one of your examples. That worked fine...thanks!