* UIDropDown: 解决下拉控件关闭报错

This commit is contained in:
Sunny 2022-06-19 17:35:32 +08:00
parent fb3a35eee1
commit 3766215964
7 changed files with 11 additions and 0 deletions

View File

@ -60,6 +60,7 @@ namespace Sunny.UI
{
InitializeComponent();
Value = UIColor.Blue;
CreateInstance();
}
private void UIColorPicker_ButtonClick(object sender, EventArgs e)

View File

@ -61,6 +61,8 @@ namespace Sunny.UI
edit.KeyDown += Edit_KeyDown;
DropDownWidth = 150;
fullControlSelect = true;
CreateInstance();
}
private void ListBox_Click(object sender, EventArgs e)

View File

@ -79,6 +79,7 @@ namespace Sunny.UI
{
InitializeComponent();
fullControlSelect = true;
CreateInstance();
}
public Control ExToolTipControl()

View File

@ -39,6 +39,7 @@ namespace Sunny.UI
{
InitializeComponent();
fullControlSelect = true;
CreateInstance();
}
private void InitializeComponent()

View File

@ -42,6 +42,8 @@ namespace Sunny.UI
MaxLength = 10;
EditorLostFocus += UIDatePicker_LostFocus;
TextChanged += UIDatePicker_TextChanged;
CreateInstance();
}
[DefaultValue(false)]

View File

@ -72,6 +72,8 @@ namespace Sunny.UI
EditorLostFocus += UIDatePicker_LostFocus;
TextChanged += UIDatePicker_TextChanged;
MaxLength = 19;
CreateInstance();
}
private void UIDatePicker_TextChanged(object sender, EventArgs e)

View File

@ -60,6 +60,8 @@ namespace Sunny.UI
EditorLostFocus += UIDatePicker_LostFocus;
TextChanged += UIDatePicker_TextChanged;
MaxLength = 8;
CreateInstance();
}
[DefaultValue(false)]