Reputation: 15
I have 2 Richtextboxws on the form. I need for each textbox to take up half the form width and full height. also, I need those textboxes to keep the above mentioned proportions even when then the form size is changed on the screen.
Any help would be much appreciated.
Upvotes: 1
Views: 817
Reputation: 81610
Use a TableLayoutPanel
with the default 2 columns, remove the last row so you only have 1 row. By default, the columns SizeType is set to a 50%, so both columns will grow and shrink proportionally.
Place a RichTextBox control in each panel of the TableLayoutPanel control.
Set the DockStyle=Fill
for the TableLayoutPanel and the two RichTextBox controls.
Upvotes: 2