What do you want to achieve with setting the Enable properties to False ?
If you want to avoid a user action on all views you could set the Visible property of the Panel to False and all views will be hidden.
For Each V As View In PnScreenCodi.GetAllViewsRecursive
If OpGestione Then 'disabilito ogni view del pannello del "codice" se sono in gestione
V.Enabled = False
Else
V.Enabled = True
End If
Next
Another trick to make the panel and its views "read-only" could be that of superimposing a same-sized transparent panel over it. The latter will consume any eventual touch event so the former behaves like it has been disabled.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.