SharpDevelop icon indicating copy to clipboard operation
SharpDevelop copied to clipboard

float property of custom user control are not handled correctly if negative

Open stefanofraccaro opened this issue 11 years ago • 7 comments

I have an UserControl (WinForms) that has a MinValue and MaxValue properties. Seems that both properties are setted to zero only switching from Source/Design.

I have a test case : www.stefanofraccaro.org/sd_bug.zip

How to reproduce :

stefanofraccaro avatar Dec 29 '14 10:12 stefanofraccaro

Set MinValue to -80 Set MaxValue to -20 Switch to Source Code Switch to Design Mode MinValue is 0 (expected -80) MaxValue is 0 (expected -20)

SharpDevelop Version : 5.1.0.4936-Beta-3ea20cfa .NET Version : 4.5.50938 OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1 Current culture : Italian (Italy) (it-IT) Running under WOW6432, processor architecture: x86-64 Working Set Memory : 89828kb GC Heap Memory : 10793kb

The same project works correctly with SD 4.4 :bug:

stefanofraccaro avatar Dec 29 '14 10:12 stefanofraccaro

There was a similar Bug in the WPF Designer! There were the Min/Max values of the Up/Down Controls wrong! Maybe something similar in Winforms?

jogibear9988 avatar Dec 29 '14 11:12 jogibear9988

Any news about this bug? I have a custom control with MinValue -100 and MaxValue +100 that changes everytime to 0-100 :-( If you don't have enough time, tell me please where I can look inside the SharpDevelop code

stefanofraccaro avatar Jan 22 '15 09:01 stefanofraccaro

Similar problem with Chart.ChartArea.Axis.Minimum in particular (and other properties in the Chart). Currently I work round the problem by setting the properties in the form constructor

Graham3 avatar Feb 04 '15 11:02 Graham3

Any news about that?

stefanofraccaro avatar Mar 05 '16 10:03 stefanofraccaro

any news about this?

aswzen avatar Nov 03 '16 04:11 aswzen

I written a "patch" 2 year ago : is it possible to merge the patch? It is very small and seems to workaround the problem. Maybe a developer can write better the patch in no more than 5 minutes.

https://github.com/icsharpcode/SharpDevelop/pull/648/commits/59f894b9dce6157a8ca3e7de91039b8c64a86a25

stefanofraccaro avatar Feb 03 '17 07:02 stefanofraccaro