method ExMenu.Refresh ()
Refreshes the control.

TypeDescription

Use the Refresh method if you add, remove or change items that are contained by the menu bar. The menu bar is always displayed by the control's form. Calling the Refresh method is not mandatory for changing items that are not contained directly by the menu bar.

The following VB sample calls the Refresh method:

ExMenu1.Refresh

The following C++ sample calls the Refresh method:

m_menu.Refresh();

The following VB.NET sample calls the Refresh method:

AxExMenu1.CtlRefresh()

In VB.NET the System.Windows.Forms.Control class has already a Refresh method, so the CtlRefresh method should be called.

The following C# sample calls the Refresh method:

axExMenu1.CtlRefresh();

In C# the System.Windows.Forms.Control class has already a Refresh method, so the CtlRefresh method should be called.

The following VFP sample calls the Refresh method:

thisform.ExMenu1.Object.Refresh()