opacity to child form in mdiParent form

teymoorei

Active member
Joined
Jan 11, 2012
Messages
36
Programming Experience
1-3
Hello
I have a mdiParent form and two other child forms (child1, child2) are opened inside this form and child2 is opened from within child1 and I want to have a opacity child2.
This is mu Code :

VB.NET:
    Private Sub btnMoreConsignmen_Click(sender As Object, e As EventArgs) Handles btnMoreConsignmen.Click
        Me.Opacity = 0.75
        frmAddElement.Show()
    End Sub
 
Nope. You can only control the opacity of a top-level form and then its children inherit that. In your case, the child forms are children of the parent form so they will have whatever opacity you set on the parent.
 
Back
Top