ComponentOne Input for WinForms
C1.Win.C1Input.4.8 Assembly / C1.Win.C1Input Namespace / C1ComboBox Class / AutoSuggestMode Property
Example

In This Topic
    AutoSuggestMode Property
    In This Topic
    Gets or sets an option that controls how candidates searching works in auto-suggest mode.
    Syntax
    'Declaration
     
    Public Property AutoSuggestMode As AutoSuggestMode
    public AutoSuggestMode AutoSuggestMode {get; set;}
    Remarks

    AutoSuggestMode works together with System.Windows.Forms.TextBox.AutoCompleteMode and System.Windows.Forms.TextBox.AutoCompleteSource properties. The AutoSuggestMode works only if CustomSource"/> or ListItems value is used in System.Windows.Forms.TextBox.AutoCompleteSource. The property does not have any effect if System.Windows.Forms.TextBox.AutoCompleteSource is any of AllSystemSources, AllUrl, FileSystem, FileSystemDirectories, HistoryList, None, RecentlyUsedList, HistoryList. The property does not have any effect if System.Windows.Forms.TextBox.AutoCompleteMode is any of Node or Append.

    Items in Auto-Suggest mode are shown without images and formatting as a plain text.

    C1ComboBox enters in Auto-Suggest mode when user types a character sequence that matches the filtering criteria.

    Example
    This sample shows how to use the AutoSuggestMode property.
    C1ComboBox comboBox = new C1ComboBox();
    comboBox.AutoCompleteMode = AutoCompleteMode.Suggest;
    comboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
    comboBox.AutoSuggestMode = AutoSuggestMode.Contains;
    comboBox.Items.AddRange(new string[]
                       {
                           "January",
                           "February",
                           "March",
                           "April",
                           "May",
                           "June",
                           "July",
                           "August",
                           "September",
                           "October",
                           "November",
                           "December"
                       });
    See Also