Defines the selection when the control receives the input focus.
Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET
public enum EntrySelectEnum;
Public Enum EntrySelectEnum
| Name | Description |
|---|---|
| None | The selection is not changed. |
| All | All of the contents are selected. When the control is empty, the caret is placed at the first input position. |
| EndHome | The contents are selected from the end to the first input position; the caret is at the first input position. |
| HomeEnd | The contents are selected from the first input position to the end; the caret is at the end. |
| Home | The caret is placed at the first input position. |
| End | The caret is placed at the end. |
Defines the selection when the control receives the input focus.
}
foreach (string name in new string[] { "en-US", "de-DE", "fr-FR", "hi-IN", "ja-JP" })
comboCulture.Items.Add(CultureInfo.GetCultureInfo(name));
comboCulture.SelectedItem = CultureInfo.GetCultureInfo("en-US");
FillCombo(comboDarkMode, typeof(DarkModeEnum), sftMaskPhone.DarkMode);
FillCombo(comboHighContrast, typeof(HighContrastModeEnum), sftMaskPhone.HighContrastMode);
FillCombo(comboInputMode, typeof(InputModeEnum), sftMaskPhone.InputMode);
FillCombo(comboEntrySelect, typeof(EntrySelectEnum), sftMaskPhone.EntrySelect);
comboPrompt.Items.AddRange(new object[] { "(space)", "_", "#", "*" });
comboPrompt.SelectedIndex = 1;
checkUnderline.Checked = sftMaskPhone.PromptUnderline;
ShowColor();
DpiChanged += Form1_DpiChanged;
}
For Each name As String In New String() {"en-US", "de-DE", "fr-FR", "hi-IN", "ja-JP"}
ComboCulture.Items.Add(CultureInfo.GetCultureInfo(name))
Next
ComboCulture.SelectedItem = CultureInfo.GetCultureInfo("en-US")
FillCombo(ComboDarkMode, GetType(DarkModeEnum), SftMaskPhone.DarkMode)
FillCombo(ComboHighContrast, GetType(HighContrastModeEnum), SftMaskPhone.HighContrastMode)
FillCombo(ComboInputMode, GetType(InputModeEnum), SftMaskPhone.InputMode)
FillCombo(ComboEntrySelect, GetType(EntrySelectEnum), SftMaskPhone.EntrySelect)
ComboPrompt.Items.AddRange(New Object() {"(space)", "_", "#", "*"})
ComboPrompt.SelectedIndex = 1
CheckUnderline.Checked = SftMaskPhone.PromptUnderline
ShowColor()
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.See Also Classes | SftMask/NET 3.0