I have set a TableLayoutPanel as a layout to organise my inputs. That was a good idea up to the moment when I realised that I had to add new elements that are not supposed to be in a specific cell in the table (They must span across table cells, but cells have to remain untouched)
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
You need to set the starting cell for the control
either like this:
or like this:
Then you can set the spans from that position like this:
And finally you can fine-tune the position at pixel-level by setting the control's
Margin
:Note however that a spanned range acts like a cell: It can only contain one control, so you cannot place any other
Control
in the spanned range! If you need more controls in the same range you need to nest them all in aPanel
or otherContainer
!