VB.NET, C#
This sample application demonstrates how to use the SmartMenuBar SmartControl using the designer as well as via code.
It specifically demonstrates how to :
Subscribe to the ItemClick and ItemMouseHover events of the SmartControl.
Subscribe to the Click, MouseEnter, MouseLeave and OpeningDropDown events of each SmartItem.
Add SmartItems, other than the preferred ones, to the SmartControl.
Display a tooltip text by setting the ToolTipText property.
Set the OverForeColor property to change the foreground color when the mouse passes over a SmartItem.
Add shortcuts to the menu items by setting the Shortcut property.
Set the Font property to change the font of a SmartItem.
Display only frequently use menu items by setting the OnlyInExtendMode property.
Dynamically create a MainMenuItem and MenuItem SmartItems.
Add, insert and remove SmartItems from the SmartControl using the Add, AddRange, Insert and Remove methods.
Create a SmartMenuBar SmartControl by code.
Master directory:
<SamplesInstallDir>Xceed SmartUI for WinForms [version]\
Where <SamplesInstallDir> by default is <SystemVolume>Xceed Samples under Windows Vista/7, and <ProgramFiles>Xceed Samples under Windows XP.
C#: \CSharp\MenuBar\MenuBarCS.csproj
VB.NET: \Visual Basic .NET\MenuBar\MenuBarVB.vbproj