Friday, July 25, 2003

Control.Width and Height Bug

Ben Hadad <ben.hadad at biotronik.com> found the following Windows Forms bug:

Size(.Width/Height) of a control is a System.Int32, but is truncated as though the datum were a System.Int16 (without warning/error). Why do I want a control this large (>32000 pixels)? For a strip chart inside a scrolled panel. Example of the bug is enclosed. Reproducible in both VB and VC# using Visual Studio 2003/.NET 1.1

Ben

Thanks Ben. I've added it as #20 in the .NET Bugs Registry.

   12:44 PM

Content of this site is © Dejan Jelovic. All rights reserved.