Question

Any ideas how can I achieve this as posted in the picture? alt text

from the three controls in the picture - ignore labels- , the button is fixed meaning that it does not resize but the other two are resizing when I am resizing their form - the same thing ANCHOR does -

Thanks

Was it helpful?

Solution 3

Ok, here is how I did it. let me know if you know how to do it in a better way:

  • a 2X2 table layout
  • the combobox should be anchored to left-top-right and ALSO its columnSpan property set to 2
  • at cell[1,1] : put that text box.. anchor: left-top-right
  • at cell[1,2] : put that button BUT set its DOCK to the RIGHT
  • in the row/col editor set column 1 to take 90% and column 2 to take 10%

OTHER TIPS

You don't necessarily need a TableLayout Panel. Just do this

  • Anchor TextBox to Left, Right and Top
  • Anchor DropDown to Left, Right and Top
  • Anchor Button to Right and Top

There are two ways:

  1. Use two TableLayoutPanels (which I prefer) one with five rows and one column (one spacer row with fixed height) above "Optional case step" label, another nested with one row and two columns.

  2. Just as you finally did.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top