How do I dynamically show/hide user interface elements?

You can dynamically show and hide user interface elements at run time by setting the element's Visibility property. This property can contain one of the following Visibility enumeration values:

Value Description
Visible The element appears normally
Collapsed The element isn't displayed and doesn't take up space in the window
Hidden The element isn't displayed but maintains its space so the layout of the window doesn't change


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 10/23/10
Comment or report problem with topic