Verena Praher
Verena Praher

Reputation: 1272

Place Panels that might resize automatically

My design is like this: I have some panels, say Panel1, Panel2, Panel3, ... my main windows consist of two or more panels, for examples Window1 consists of Panel1 and Panel2, Window2 consists of Panel3 and Panel2, ... They are all one below the other and it might happen that I have to add or remove something from a panel, so that it grows or shrinks. Do I have to use a TableLayout to keep them aligned? Or is there an option that tells my Panel1 that it should be position where Panel2 ends?

Update: I forgot to mention that I'm working on a desktop application. When researching both TableLayoutPanel and GridLayoutPanel I read that made a difference.

Upvotes: 0

Views: 95

Answers (1)

U1199880
U1199880

Reputation: 905

There is no option to tell Panel2 to start where panel1 ends. However, "have to use a TableLayout" is not true either. You could use manual repositioning or a flow layout panel for example. Off-hand, from your brief description it sounds like a flow layout panel might fit the bill here better than a table layout control.

Upvotes: 1

Related Questions