method ExMenu.Save (Stream as Variant)
Saves the menu to the destination.

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

Use the Save method to save the items of the menu to a file. Use the Load method to load items from a file. The Save method saves the items and the icons too. 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 saves the menu from a file:

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

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

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

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

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

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

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

The following VFP sample saves the menu from a file:

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