Complete @ user232986's answer, which helped me solve my problem. This is the code for VB.NET in the designer that I chose for
- Row1:
AutoSize (Contains data, such as a shortcut) - Row2:
AutoSize (Contains data, such as a panel) - Row3:
Percent 100% (This is the last row containing the data) - Row4:
Absolute 0 (Add dummy line)
Then in my code, I changed these settings and worked like a charm.
Me.tableLay.AutoSizeMode = Windows.Forms.AutoSizeMode.GrowAndShrink Me.tableLay.AutoSize = True Me.tableLay.Dock = DockStyle.Fill
I have only one column that is set to Percent 100,00% .
Matthis kohli
source share