System.Windows.Forms.ToolStripItem.SetVisibleCore Method

Sets the System.Windows.Forms.ToolStripItem to the specified visible state.

Syntax

protected virtual void SetVisibleCore (bool visible)

Parameters

visible
true to make the System.Windows.Forms.ToolStripItem visible; otherwise, false.

Remarks

You typically override this method to change the visibility behavior of the control.

Note:

When overriding ToolStripItem.SetVisibleCore(bool) in a derived class, be sure to call the base class's ToolStripItem.SetVisibleCore(bool) method to force the visibility of the control to change.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0