mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 10:38:56 -05:00
ComboBox empty text => index 0
Easier clearing of values; instead of saying "stuff is wrong", it's obvious the user deleted the text so just set it to the 0th item.
This commit is contained in:
@@ -2060,6 +2060,8 @@ private void validateComboBox(object sender)
|
||||
|
||||
ComboBox cb = (ComboBox)sender;
|
||||
cb.SelectionLength = 0;
|
||||
if (cb.Text == "")
|
||||
{ cb.SelectedIndex = 0; return; }
|
||||
cb.BackColor = cb.SelectedValue == null ? Color.DarkSalmon : defaultControlWhite;
|
||||
}
|
||||
private void validateComboBox(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user