How to get this sizing effect?

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
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
 
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
 
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
 
Back
Top