How to get this sizing effect?

L

Lloyd Sheen

I have a usercontrol which has a panel (docked top) with a Button (Image), a
textbox and a dropdown list.

What I need is the following on resize. The button will not resize, it is a
constant size and is at the left. I want the textbox and dropdownlist to
resize to relative sizes (as seen in the designer window) when the control
resizes. Is there a way to do this without code , I have tried the anchor
but I can't seem to get a combination that does what I want.

Thanks
LS
 
F

Family Tree Mike

Lloyd Sheen said:
I have a usercontrol which has a panel (docked top) with a Button (Image), a
textbox and a dropdown list.

What I need is the following on resize. The button will not resize, it is a
constant size and is at the left. I want the textbox and dropdownlist to
resize to relative sizes (as seen in the designer window) when the control
resizes. Is there a way to do this without code , I have tried the anchor
but I can't seem to get a combination that does what I want.

Thanks
LS

I don't know if this is the best way, but I would put the three items into a
table layout. The table should have the left most column set to "size to
content", while the other two columns resize as normal. anchor the text box
and dropdown list to the cell left and right, and dock the table layout to
the center (fill).

Mike
 
L

Lloyd Sheen

Family Tree Mike said:
I don't know if this is the best way, but I would put the three items into
a
table layout. The table should have the left most column set to "size to
content", while the other two columns resize as normal. anchor the text
box
and dropdown list to the cell left and right, and dock the table layout to
the center (fill).

Mike

Thanks worked like a charm.

LS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top