Help to design this TableLayoutPanel
Any id开发者_运维百科eas how can I achieve this as posted in the picture?
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
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:
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.
Just as you finally did.
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%
精彩评论