Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hey guys,
i have an mdi form with background image set to some image. also, i have a panel and in that panel a few buttons. the panel set like this in the form_Load:
VB
Panel1.Parent = Me
        SetStyle(ControlStyles.SupportsTransparentBackColor, True)
        Panel1.BackColor = Color.Transparent

after the load of the mdi, the panel background is gray.
i need the panel background will be transperent, so i can only see the buttons.
one more thing: when i set the mdi to "isMdiContainer = false", the panel behave as i need to.
thanks,
oron.
Posted

1 solution

Unfortunately, with System.Windows.Forms all that semi-transparent control stuff is just not serious. Forget it and consider moving to WPF. In WPF the situation is just the opposite. Anything at all can be semi-transparent.
And don't use MDI. This is a separate story. Just don't.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900