My situation is something like this.
I have a form as frmPopup which has a panel as pnlCtrlHolder. I'll using this form a popup and display a third form as control in this panel.
on form X.
dim frm as frmPopup
''Set the properties for this frmPopup
frm.Opacity=60
Dim frmContent as frmContent
''Set the properties for this frmPopup
frm.Opacity=100
frm.SetForm(frmContent)
frm.ShowDialog(me.toplevelControl)
In frmPopup:
Public Sub SetForm(frm as Windows.Forms.Form)
pnlCtrlHolder.Controls.Clear()
pnlCtrlHolder.Controls.add(frm)
End Sub
Now my problem, This makes entire form with frmContent with opacity =60, but I need this only on frmPopup but not on frmContent.
I am working on vb.net Winforms application. I understand that I am adding a form as control on a form with opacity as 60. But is there any way to achieve the desired result. . Am i missing something?