Results 1 to 3 of 3

Thread: Changing MDI Child Background color in design mode?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Changing MDI Child Background color in design mode?

    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.
    Blake

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Changing MDI Child Background color in design mode?

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: Changing MDI Child Background color in design mode?

    JM,

    I saw one of your examples. That worked fine...thanks!
    Blake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width