Width of textbox on a FlowLayoutPanel

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.
 
J

Jared

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
 

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