C# Winforms TableLayoutPanel middle align the control

TableLayoutPanel control represents a panel that dynamically lays out its contents in a table format. You want to use a TableLayoutPanel in complex and sophisticated applications where you need to create dynamic layouts.TableLayoutPanel

By default when you add controls to the TableLayoutPanel, it sets them to the top left corner. When you want to align these controls (for exam, Button) to be middle, Set the value of the Button control’s Anchor property to None. The Button control moves to the center of the cell.

Advertisements

2 thoughts on “C# Winforms TableLayoutPanel middle align the control

  1. I’m really impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it is rare to see a great blog like this one these days.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s