Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do Extender-provider properties work with TableLayoutPanel?

Rather than have properties on Cells, the table layout panel proffers properties on the controls within the cells via extender providers. Below is the list of those offered.

CellPosition

public void SetCellPosition(Control control, TableLayoutPanelCellPosition position); 

Specifies the where the column and row where a control should be placed. -1, -1 means place at next free position.

Column

public int GetColumn(Control control); 
public void SetColumn(Control control, int column); 

Specify the where the column where a control should be placed. -1,  means place at next free position

ColumnSpan

public int GetColumnSpan(Control control);
public void SetColumnSpan(Control control, int value); 

Specify how many columns this control should span. (default is 1)

Row

public int GetRow(Control control);
public void SetRow(Control control, int row);

Specify the where the row where a control should be placed. -1,  means place at next free position.



Page view counter