Syncfusion.Tools.Windows
Members 


ComboBoxBarItem Class

Represents a bar item that provides the combo box functionality in the XP Menus framework.
Object Model
ComboBoxBarItem ClassImageExt ClassImageListAdv ClassImageListAdv ClassImageExt ClassImageListAdv ClassImageListAdv ClassImageExt ClassImageListAdv ClassImageListAdv ClassImageListAdv ClassImageListAdv Class
Syntax
'Declaration
 
<DesignerAttribute(Syncfusion.Windows.Forms.Tools.Design.BarItemDesigner, System.ComponentModel.Design.IDesigner)>
<ToolboxItemAttribute(False)>
<DesignTimeVisibleAttribute(False)>
<DesignerCategoryAttribute("Component")>
<SerializableAttribute()>
Public Class ComboBoxBarItem 
   Inherits BarItemEx
   Implements Syncfusion.ComponentModel.IChangeNotifyingItem, Syncfusion.Windows.Forms.IDataBindingSupport, Syncfusion.Windows.Forms.IIgnoreWorkingArea, IRequiresControl 
'Usage
 
Dim instance As ComboBoxBarItem
[Designer(Syncfusion.Windows.Forms.Tools.Design.BarItemDesigner, System.ComponentModel.Design.IDesigner)]
[ToolboxItem(false)]
[DesignTimeVisible(false)]
[DesignerCategory("Component")]
[Serializable()]
public class ComboBoxBarItem : BarItemEx, Syncfusion.ComponentModel.IChangeNotifyingItem, Syncfusion.Windows.Forms.IDataBindingSupport, Syncfusion.Windows.Forms.IIgnoreWorkingArea, IRequiresControl  
Remarks

This item provides you the flat look combo-boxes in your menus and toolbars. The item can operate in either editable or listbox mode (controlled by the Editable property). The TextBoxValue represents the current Text in the text box selected by the user.

When in list box mode, you can fill the ChoiceList with the choices you want to provide the user.

When in editable mode, you can turn on AutoAppend which will make the framework track and persist the entries made by the user and automatically append them to the choice list in the drop-down. Turning on AutoAppend will ignore the entries you made in the ChoiceList. The entries made by the user will be stored in the registry for reuse across applications. This entry will be associated with a custom AutoAppend category ID which will be synthesized based on the ComboBoxBarItem's text and CategoryID property.

When in editable mode, a BarItem.Click event will be thrown when the user presses the Return key when in the TextBox or when the user selects an item from the drop-down. When in list box mode, an BarItem.Click event will be thrown when the user selects an item from the drop-down list box.

Use the MinWidth property to provide a minimum width the corresponding bar item should be drawn with. The actual width might be bigger than the provided MinWidth in some cases.

Example
Take a look at our XPMenus samples under the Tools\Samples\Menus Package\ folder for usage example.
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         Syncfusion.Windows.Forms.Tools.XPMenus.BarItem
            Syncfusion.Windows.Forms.Tools.XPMenus.BarItemEx
               Syncfusion.Windows.Forms.Tools.XPMenus.ComboBoxBarItem

AssemblyVersion

Syncfusion.Tools.Windows: 17.4460.0.46

See Also