Link to home
Start Free TrialLog in
Avatar of Cannibal_Jack
Cannibal_Jack

asked on

MDI form background colour

Hi, I have an MDI container form and I am unable to change its background colour. Is there a quick and easy way to change the background colour at all? Thanks.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

I use this code :
        Dim objColor As Color
        objColor = Color.DarkSeaGreen
 
        'Loop, looking for MdiClient type Forms 
        For Each ctl As Control In Me.Controls
            If TypeOf (ctl) Is MdiClient Then
                CType(ctl, MdiClient).BackColor = objColor
                Exit For
            End If
        Next

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ZachSmith
ZachSmith
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did you get it to work?