SgDotNet
Singapore Professional .NET User Group -For Cool Developers

TableLayoutPanel and Row/ColumnCount

rated by 0 users
This post has 0 Replies | 1 Follower

Top 10 Contributor
Posts 2,284
icelava Posted: 07-02-2008 1:07 PM

I am looking into the behaviour of the TableLayoutPanel and am confused with the RowCount/ColumnCount property. According to the SDK documentation, it can be set to 0 to indicate endless growth when more controls are added in that particular direction. However when setting 0 in Visual Studio,

Property value is not valid. RowCount must be greater than zero.

However, I can programmatically set the values of those properties to 0 indeed.

Additionally, a numerical value has been set, each new control I add to the layout panel does not increase the RowCount or ColumnCount at all despite it visually being able to align the added controls properly. The value remains to whatever number I previously set explicitly. Can anybody explain if this is the logical and expected behaviour? I am not able to infer this well from the documentation.

The melody of logic will always play out the truth. ~ Narumi Ayumu, Spiral

Page 1 of 1 (1 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems