Returns the list of the combo box.
Class: SftBox
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET
public ListClass List { get; }Public ReadOnly Property List As ListClass
The list that holds the combo box's columns and items.
Returns the list of the combo box.
The list is a hierarchical list with columns, headers, row headers, images, check boxes, sorting, colors and more. Its items are the combo box's items. The list's selection is the combo box's selection, except while the dropdown is open: then it is the item the user is about to choose.
if (sftBox3.SelectedItem == null && sftBox3.Items.Count > 0)
sftBox3.SelectedItem = sftBox3.Items[0];
BindLookup();
FillCombo(comboSearch, typeof(SearchModeEnum), sftBox5.SearchMode);
FillCombo(comboAlignment, typeof(DropDownAlignmentEnum), sftBox1.DropDownAlignment);
FillCombo(comboPosition, typeof(DropDownPositionEnum), sftBox1.DropDownPosition);
FillCombo(comboNumbering, typeof(RowHeaderNumberingEnum), sftBox7.List.RowHeaders.Numbering);
FillCombo(comboDarkMode, typeof(DarkModeEnum), sftBox1.DarkMode);
FillCombo(comboHighContrast, typeof(HighContrastModeEnum), sftBox1.HighContrastMode);
DpiChanged += Form1_DpiChanged;
}
// On the .NET Framework, a ComboBox in a container keeps its old font when the window moves to a monitor with
// another scale. Setting another font and then the inherited one again makes it use the new one.
SftBox3.SelectedItem = SftBox3.Items(0)
End If
BindLookup()
FillCombo(ComboSearch, GetType(SearchModeEnum), SftBox5.SearchMode)
FillCombo(ComboAlignment, GetType(DropDownAlignmentEnum), SftBox1.DropDownAlignment)
FillCombo(ComboPosition, GetType(DropDownPositionEnum), SftBox1.DropDownPosition)
FillCombo(ComboNumbering, GetType(RowHeaderNumberingEnum), SftBox7.List.RowHeaders.Numbering)
FillCombo(ComboDarkMode, GetType(DarkModeEnum), SftBox1.DarkMode)
FillCombo(ComboHighContrast, GetType(HighContrastModeEnum), SftBox1.HighContrastMode)
End Sub
' On the .NET Framework, a ComboBox in a container keeps its old font when the window moves to a monitor with
' another scale. Setting another font and then the inherited one again makes it use the new one.
Private Sub Form1_DpiChanged(ByVal sender As Object, ByVal e As DpiChangedEventArgs) Handles Me.DpiChangedSee Also SftBox Class | Classes | SftBox/NET 3.0