How to determine if a panel is visible?

Jeff Stiegler 466 Reputation points
2020-11-20T17:59:20.937+00:00

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.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,835 questions
{count} votes

0 additional answers

Sort by: Most helpful