You can use GetChildIndex
Like :
Dim nChildIndex As Integer = Me.Controls.GetChildIndex(panAdoption)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a form with 3 panels on top of each other. How can I tell if one of the panels is on top and therefore visible?
The code below does not work.
If FPMain.panAdoption.Visible = True then
' Do some code
End If
Thank you for any assistance.
You can use GetChildIndex
Like :
Dim nChildIndex As Integer = Me.Controls.GetChildIndex(panAdoption)