user4221591
user4221591

Reputation: 2150

consistent spaces and alignment between textboxes and labels

I am designing a win form using C# having around 100 textboxes and labels. It is very tedious task to make the spaces between the textboxes, labels consistent and also the alignments of the controls manually.

Is there any way I can specify the space between the controls so that every controls of the form have the space between them. And also the alignments of the controls.

Upvotes: 4

Views: 3065

Answers (2)

Santosh Bhosale
Santosh Bhosale

Reputation: 1

For consistent spaces and alignments you can also use Format option from Visual Studio Menu bar when you are on designer page.You can make same size,align and set hor-ver spacing there. (Select the controls you want to align or set spacing)

Upvotes: 0

Hari Prasad
Hari Prasad

Reputation: 16956

Use TableLayoutPanel and set your Dock property accordingly for controls.

You can read more details from MSDN

Upvotes: 1

Related Questions