Groups | Blog | Home
all groups > dotnet windows forms controls > december 2005 >

dotnet windows forms controls : 16-bit Limit in the Height of a TableLayoutPanel Control


Jim Meyer
12/21/2005 4:35:00 PM
I'm using a TableLayoutPanel to hold +1000 rows at a time. With a row
height of 36 px the total height of the table should be 50924 for 1414
rows, which "PreferredSize.Height" indicates correctly. However, when I
assign this value to the "Height" property of the table it remains at
32767 even though no exception is thrown by the assignment. 32767 is the
maximum value for a 16 bit signed integer, but this doesn't match the
Int32 Height property so it shouldn't be a problem!?

Is there any way to overcome this height limitation for a
TableLayoutPanel control?

Regards,
v-jetan NO[at]SPAM online.microsoft.com (
12/22/2005 2:33:37 AM
Hi Jim,

Thanks for your post.

Yes, I can reproduce out this behavior. Actually, this issue is not
specific to TableLayoutPanel control, while all the winform controls will
have such limitation(I have tested button control etc..).I suspect this
behavior is the limitation of .Net winform controls.

Currently, I found that another customer has submitted this limitation as a
bug to our product team, and our product team is currently working on this.
You may monitor this bug progress in the public link below:
"Bug Details: PictureBox property Height is not an integer"
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=2
4d985c4-0f8f-42ad-91fb-3bc11d867acc

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button