Resizable table layout panel in c#

前端 未结 2 991
囚心锁ツ
囚心锁ツ 2021-01-12 11:05

I find the table layout panel in c# (.net 2.0) to be very primitive. I wanted to allow my users to resize the columns in a table layout panel but there are no ready made opt

2条回答
  •  离开以前
    2021-01-12 11:52

    If your layout is not overly complex, maybe you can achieve what you want by using SplitContainer controls? Unfortunately, each SplitContainer will have only two "cells", but you can embed a SplitContainer in another SplitContiner panel to get more resizable cells:

    ┌──────────────────┐
    │┌─────┬──────────┐│
    ││     │          ││
    ││     │          ││
    │└─────┴──────────┘│
    ├──────────────────┤
    │┌──────────┬─────┐│
    ││          │     ││
    ││          │     ││
    │└──────────┴─────┘│
    └──────────────────┘
    

    OK, so ASCII art was never one of my stronger skills, but I think you get the point ;o)

提交回复
热议问题