How should you set the ColumnStyle instance’s Size Type property?

You have configured three columns to a form and add a TableLayoutPanel to the form. You want the two side columns to have a fix width of 200 pixels each and anchor the four edges of the form to the control. A Domain.com manager wants the center column to fill the remaining space, when ever the form is resized. You need to change the ColumnStyle instance that represents the center column? How should you set the ColumnStyle instance’s Size Type property?

You have configured three columns to a form and add a TableLayoutPanel to the form. You want the two side columns to have a fix width of 200 pixels each and anchor the four edges of the form to the control. A Domain.com manager wants the center column to fill the remaining space, when ever the form is resized. You need to change the ColumnStyle instance that represents the center column? How should you set the ColumnStyle instance’s Size Type property?

A.
Set it to AutoSize and the Width property to 100F.

B.
Set it to Absolute and the Width property to 100F.

C.
Set it to Percent and the Width property to 100F.

D.
Set it to AutoSize and the Width property to 0F.

Explanation:
This setting will show that the column should fill the remaining space.

Incorrect Answers:
A: This setting will allow the column to be sized enough so that not any of its child controls are clipped. In this setting the middle will not occupy the remaining free space.
B: If you set it to Absolute, the value of the Width property will show the number of pixels for the column.
D: You need to set the the ColumnStyle instance’s Size Type property to AutoSize and the Width property to 100F.



Leave a Reply 0

Your email address will not be published. Required fields are marked *