* UIDropDown: 解决下拉控件关闭报错
This commit is contained in:
parent
fb3a35eee1
commit
3766215964
@ -60,6 +60,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Value = UIColor.Blue;
|
Value = UIColor.Blue;
|
||||||
|
CreateInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UIColorPicker_ButtonClick(object sender, EventArgs e)
|
private void UIColorPicker_ButtonClick(object sender, EventArgs e)
|
||||||
|
@ -61,6 +61,8 @@ namespace Sunny.UI
|
|||||||
edit.KeyDown += Edit_KeyDown;
|
edit.KeyDown += Edit_KeyDown;
|
||||||
DropDownWidth = 150;
|
DropDownWidth = 150;
|
||||||
fullControlSelect = true;
|
fullControlSelect = true;
|
||||||
|
|
||||||
|
CreateInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ListBox_Click(object sender, EventArgs e)
|
private void ListBox_Click(object sender, EventArgs e)
|
||||||
|
@ -79,6 +79,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
fullControlSelect = true;
|
fullControlSelect = true;
|
||||||
|
CreateInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Control ExToolTipControl()
|
public Control ExToolTipControl()
|
||||||
|
@ -39,6 +39,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
fullControlSelect = true;
|
fullControlSelect = true;
|
||||||
|
CreateInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
|
@ -42,6 +42,8 @@ namespace Sunny.UI
|
|||||||
MaxLength = 10;
|
MaxLength = 10;
|
||||||
EditorLostFocus += UIDatePicker_LostFocus;
|
EditorLostFocus += UIDatePicker_LostFocus;
|
||||||
TextChanged += UIDatePicker_TextChanged;
|
TextChanged += UIDatePicker_TextChanged;
|
||||||
|
|
||||||
|
CreateInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
[DefaultValue(false)]
|
[DefaultValue(false)]
|
||||||
|
@ -72,6 +72,8 @@ namespace Sunny.UI
|
|||||||
EditorLostFocus += UIDatePicker_LostFocus;
|
EditorLostFocus += UIDatePicker_LostFocus;
|
||||||
TextChanged += UIDatePicker_TextChanged;
|
TextChanged += UIDatePicker_TextChanged;
|
||||||
MaxLength = 19;
|
MaxLength = 19;
|
||||||
|
|
||||||
|
CreateInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UIDatePicker_TextChanged(object sender, EventArgs e)
|
private void UIDatePicker_TextChanged(object sender, EventArgs e)
|
||||||
|
@ -60,6 +60,8 @@ namespace Sunny.UI
|
|||||||
EditorLostFocus += UIDatePicker_LostFocus;
|
EditorLostFocus += UIDatePicker_LostFocus;
|
||||||
TextChanged += UIDatePicker_TextChanged;
|
TextChanged += UIDatePicker_TextChanged;
|
||||||
MaxLength = 8;
|
MaxLength = 8;
|
||||||
|
|
||||||
|
CreateInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
[DefaultValue(false)]
|
[DefaultValue(false)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user