method ExMenu.Load (Stream as Variant)
Loads the menu saved using Save method.

TypeDescription
Stream as Variant A string expression that indicates the file name being loaded. 

The Load method loads items  from a file. The file must be saved previously using the Save method. Use the Refresh method to refresh the control's content. Use the Images property to load icons at runtime. Use the ReplaceIcon property to add, remove, replace, or clear the images collection.

The following VB sample loads the menu from a file:

With ExMenu1
    .Load "d:\temp\test.mnu"
End With

The following C++ sample loads the menu from a file:

m_menu.Load(COleVariant( "d:\\temp\\test.mnu" ));

The following VB.NET sample loads the menu from a file:

With AxExMenu1
    .Load("d:\temp\test.mnu")
End With

The following C# sample loads the menu from a file:

axExMenu1.Load("d:\\temp\test.mnu");

The following VFP sample loads the menu from a file:

With thisform.ExMenu1
    .Load("d:\temp\test.mnu")
EndWith