property Item.Visible as Boolean
Specifies whether the item is visible or hidden.

TypeDescription
Boolean A boolean expression that indicates whether the item is visible or hidden.
By default, all items are visible. Use the Visible property to hide an item. Use the Enabled property to disable an item. Use the ForeColor property to specify the item's foreground color. Use the BackColor property to specify the item's background color. Use the Separator property to specify whether an item is a separator item. Use the Refresh method to refresh the control. 

The following VB sample hides the item with the identifier 10:

With ExMenu1.Item(10)
    .Visible = False
End With
ExMenu1.Refresh

The following C++ sample hides the item with the identifier 10:

CItem item = m_menu.GetItem( COleVariant( long( 10 ) ) );
item.SetVisible( FALSE );
m_menu.Refresh();

The following VB.NET sample hides the item with the identifier 10:

With AxExMenu1.item(10)
    .Visible = False
End With
AxExMenu1.CtlRefresh()

The following C# sample hides the item with the identifier 10:

EXMENULib.item item = axExMenu1[10];
item.Visible = false;
axExMenu1.CtlRefresh();

The following VFP sample hides the item with the identifier 10:

With thisform.ExMenu1.Item(10)
	.Visible = .f.
EndWith
thisform.ExMenu1.Object.Refresh