diff --git a/SunnyUI/Controls/UIColorPicker.cs b/SunnyUI/Controls/UIColorPicker.cs index ddae45f9..2b25761d 100644 --- a/SunnyUI/Controls/UIColorPicker.cs +++ b/SunnyUI/Controls/UIColorPicker.cs @@ -60,6 +60,7 @@ namespace Sunny.UI { InitializeComponent(); Value = UIColor.Blue; + CreateInstance(); } private void UIColorPicker_ButtonClick(object sender, EventArgs e) diff --git a/SunnyUI/Controls/UIComboBox.cs b/SunnyUI/Controls/UIComboBox.cs index 5ee6ce7b..c14883ce 100644 --- a/SunnyUI/Controls/UIComboBox.cs +++ b/SunnyUI/Controls/UIComboBox.cs @@ -61,6 +61,8 @@ namespace Sunny.UI edit.KeyDown += Edit_KeyDown; DropDownWidth = 150; fullControlSelect = true; + + CreateInstance(); } private void ListBox_Click(object sender, EventArgs e) diff --git a/SunnyUI/Controls/UIComboDataGridView.cs b/SunnyUI/Controls/UIComboDataGridView.cs index 49468fc2..549d9f9d 100644 --- a/SunnyUI/Controls/UIComboDataGridView.cs +++ b/SunnyUI/Controls/UIComboDataGridView.cs @@ -79,6 +79,7 @@ namespace Sunny.UI { InitializeComponent(); fullControlSelect = true; + CreateInstance(); } public Control ExToolTipControl() diff --git a/SunnyUI/Controls/UIComboTreeView.cs b/SunnyUI/Controls/UIComboTreeView.cs index 61e141c7..121fcc1e 100644 --- a/SunnyUI/Controls/UIComboTreeView.cs +++ b/SunnyUI/Controls/UIComboTreeView.cs @@ -39,6 +39,7 @@ namespace Sunny.UI { InitializeComponent(); fullControlSelect = true; + CreateInstance(); } private void InitializeComponent() diff --git a/SunnyUI/Controls/UIDatePicker.cs b/SunnyUI/Controls/UIDatePicker.cs index 805ca9c4..7548010a 100644 --- a/SunnyUI/Controls/UIDatePicker.cs +++ b/SunnyUI/Controls/UIDatePicker.cs @@ -42,6 +42,8 @@ namespace Sunny.UI MaxLength = 10; EditorLostFocus += UIDatePicker_LostFocus; TextChanged += UIDatePicker_TextChanged; + + CreateInstance(); } [DefaultValue(false)] diff --git a/SunnyUI/Controls/UIDateTimePicker.cs b/SunnyUI/Controls/UIDateTimePicker.cs index 57b0a4e8..cb1fdf85 100644 --- a/SunnyUI/Controls/UIDateTimePicker.cs +++ b/SunnyUI/Controls/UIDateTimePicker.cs @@ -72,6 +72,8 @@ namespace Sunny.UI EditorLostFocus += UIDatePicker_LostFocus; TextChanged += UIDatePicker_TextChanged; MaxLength = 19; + + CreateInstance(); } private void UIDatePicker_TextChanged(object sender, EventArgs e) diff --git a/SunnyUI/Controls/UITimePicker.cs b/SunnyUI/Controls/UITimePicker.cs index 8e0fb61e..2ca8483c 100644 --- a/SunnyUI/Controls/UITimePicker.cs +++ b/SunnyUI/Controls/UITimePicker.cs @@ -60,6 +60,8 @@ namespace Sunny.UI EditorLostFocus += UIDatePicker_LostFocus; TextChanged += UIDatePicker_TextChanged; MaxLength = 8; + + CreateInstance(); } [DefaultValue(false)]