TableLayoutPanelGrowStyle Enumeration
.NET Framework 2.0
Note: This enumeration is new in the .NET Framework version 2.0.
Specifies how a TableLayoutPanel will gain additional rows or columns after its existing cells are full.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Assembly: System.Windows.Forms (in system.windows.forms.dll)
The following example shows how to use TableLayoutPanelGrowStyle to set the GrowStyle property on a TableLayoutPanel control. This code example is part of a larger example provided for the TableLayoutPanel control.
Private Sub growStyleNoneBtn_CheckedChanged( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles growStyleNoneBtn.CheckedChanged Me.tlpGrowStyle = TableLayoutPanelGrowStyle.FixedSize End Sub Private Sub growStyleAddRowBtn_CheckedChanged( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles growStyleAddRowBtn.CheckedChanged Me.tlpGrowStyle = TableLayoutPanelGrowStyle.AddRows End Sub Private Sub growStyleAddColumnBtn_CheckedChanged( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles growStyleAddColumnBtn.CheckedChanged Me.tlpGrowStyle = TableLayoutPanelGrowStyle.AddColumns End Sub Private Sub testGrowStyleBtn_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles testGrowStyleBtn.Click Me.TableLayoutPanel1.GrowStyle = Me.tlpGrowStyle Try Me.TableLayoutPanel1.Controls.Add(New Button()) Catch ex As ArgumentException Trace.WriteLine(ex.Message) End Try End Sub
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: