property ExMenu.Background(Part as BackgroundPartEnum) as Color
Returns or sets a value that indicates the background color for parts in the control.

TypeDescription
Part as BackgroundPartEnum A BackgroundPartEnum expression that indicates a part in the control.
Color A Color expression that indicates the background color for a specified part. The last 7 bits in the high significant byte of the color to indicates the identifier of the skin being used. Use the Add method to add new skins to the control. If you need to remove the skin appearance from a part of the control you need to reset the last 7 bits in the high significant byte of the color being applied to the background's part.
The Background property specifies a background color or a visual appearance for specific parts in the control. If the Background property is 0, the control draws the part as default. Use the Add method to add new skins to the control. Use the Remove method to remove a specific skin from the control. Use the Clear method to remove all skins in the control.

The following VB sample changes the appearance for the separator item. The sample uses the "" skin.

With ExMenu1
    .VisualAppearance.Add 4, "D:\Temp\ExMenu.Help\separator.ebn"
    .Background(exSeparatorItem) = &H4000000
End With

The following C++ sample changes the appearance for the separator item:

#include "Appearance.h"
m_menu.GetVisualAppearance().Add( 4, COleVariant( "D:\\Temp\\ExMenu.Help\\separator.ebn" ) );
m_menu.SetBackground( 0, 0x4000000 );

The following VB.NET sample changes the appearance for the separator item:

With AxExMenu1
    .VisualAppearance.Add(4, "D:\Temp\ExMenu.Help\separator.ebn")
    .set_Background(EXMENULib.BackgroundPartEnum.exSeparatorItem, &H4000000)
End With

The following C# sample changes the appearance for the separator item:

axExMenu1.VisualAppearance.Add(4, "D:\\Temp\\ExMenu.Help\\separator.ebn");
axExMenu1.set_Background(EXMENULib.BackgroundPartEnum.exSeparatorItem, 0x4000000);

The following VFP sample changes the appearance for the separator item:

with thisform.ExMenu1
	.VisualAppearance.Add(4, "D:\Temp\ExMenu.Help\separator.ebn")
	.Background(0) = 67108864
endwith

where the 67108864 in hexa is 0x4000000