diff --git a/Bin/net40/SunnyUI.Demo.exe b/Bin/net40/SunnyUI.Demo.exe index 7602f05c..cddc19ae 100644 Binary files a/Bin/net40/SunnyUI.Demo.exe and b/Bin/net40/SunnyUI.Demo.exe differ diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index 4a7c788f..3e30ac99 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll index 5b04e32d..084a181b 100644 Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll index 0d3bfe0a..9559fd54 100644 Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ diff --git a/SunnyUI/Controls/UIDoubleUpDown.cs b/SunnyUI/Controls/UIDoubleUpDown.cs index 5063e2bf..c4608edc 100644 --- a/SunnyUI/Controls/UIDoubleUpDown.cs +++ b/SunnyUI/Controls/UIDoubleUpDown.cs @@ -243,8 +243,10 @@ namespace Sunny.UI edit.TextAlign = HorizontalAlignment.Center; edit.Text = pnlValue.Text; edit.DecLength = Decimal; - edit.Visible = true; edit.BringToFront(); + edit.Visible = true; + edit.Focus(); + edit.SelectAll(); } } } \ No newline at end of file diff --git a/SunnyUI/Controls/UIDoubleUpDown.designer.cs b/SunnyUI/Controls/UIDoubleUpDown.designer.cs index 28088b63..cbba2349 100644 --- a/SunnyUI/Controls/UIDoubleUpDown.designer.cs +++ b/SunnyUI/Controls/UIDoubleUpDown.designer.cs @@ -82,7 +82,7 @@ this.pnlValue.Size = new System.Drawing.Size(58, 29); this.pnlValue.TabIndex = 2; this.pnlValue.Text = "0"; - this.pnlValue.DoubleClick += new System.EventHandler(this.pnlValue_DoubleClick); + this.pnlValue.Click += new System.EventHandler(this.pnlValue_DoubleClick); // // UIDoubleUpDown // diff --git a/SunnyUI/Controls/UIIntegerUpDown.cs b/SunnyUI/Controls/UIIntegerUpDown.cs index 7179fd6f..fcd1f8b6 100644 --- a/SunnyUI/Controls/UIIntegerUpDown.cs +++ b/SunnyUI/Controls/UIIntegerUpDown.cs @@ -236,8 +236,10 @@ namespace Sunny.UI pnlValue.FillColor = Color.White; edit.TextAlign = HorizontalAlignment.Center; edit.Text = pnlValue.Text; - edit.Visible = true; edit.BringToFront(); + edit.Visible = true; + edit.Focus(); + edit.SelectAll(); } } } \ No newline at end of file diff --git a/SunnyUI/Controls/UIIntegerUpDown.designer.cs b/SunnyUI/Controls/UIIntegerUpDown.designer.cs index 4faa1d7b..250fb306 100644 --- a/SunnyUI/Controls/UIIntegerUpDown.designer.cs +++ b/SunnyUI/Controls/UIIntegerUpDown.designer.cs @@ -82,7 +82,7 @@ this.pnlValue.Size = new System.Drawing.Size(58, 29); this.pnlValue.TabIndex = 2; this.pnlValue.Text = "0"; - this.pnlValue.DoubleClick += new System.EventHandler(this.pnlValue_DoubleClick); + this.pnlValue.Click += new System.EventHandler(this.pnlValue_DoubleClick); // // UIIntegerUpDown //