• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 575
  • Last Modified:

Opacity with Child Forms

Hello,

I am trying to make a child form transparent using the Opacity property, but it doesn't work.  I have tried, as suggested in an answer on this forum, to use the .MDIChildren(0).Opactiy property, but this also doesn't work.  During debugging, the opacity property does change, but the form doesn't become transparent.  How can I make this work?  Thank you.
0
vdurbal
Asked:
vdurbal
1 Solution
 
Erick37Commented:
The Opacity property (Trancparency) is supported only in top level windows - not in child windows.  I do not know of a work-around.

From MSDN:
"Note   The MDI child form you create in this step is a standard Windows Form. As such, it has an Opacity property, which allows you to control the transparency of the form. However, the Opacity property was designed for top-level windows. Do not use it with MDI child forms, as painting problems can occur."
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskcreatingmdichildforms.asp
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now