Width of textbox on a FlowLayoutPanel

  • Thread starter Thread starter Tristan
  • Start date Start date
T

Tristan

Hi,

I have three textboxes on the same row on a FlowLayoutPanel. I want the
one on the left and right to have a fixed width but for the one in the
middle to fill any remaining space depending on the width of the
FlowLayoutPanel. Is this possible? (The widths of the left and right
boxes aren't known until runtime).

I was thinking that I could handle the SizeChangingEvent and work out
the width to set the middle text box to. This would basically be: width
of FlowLayoutPanel - width of left text box- width of right text box.
However, I don't know how to determine what controls are on the same
row in order to retrieve their width?!

Any help appreciated.

Thanks

Tristan.
 
Could try messing around with panels and docks just a matter of setting left
and right to dock left and right and middle to dock . fill, but this would
require alot of panels
 
Back
Top