Question

I am building an application that will show / hide portions of the form as the user completes it. I will use a TableLayoutPanel for ease of resizing (hide / show) all my controls.

My question is:

Is it more efficient to create a large TableLayoutPanel with all columns necessary for the controls that will be in the form, or should I nest a TableLayoutPanel into another?

On MSDN's TableLayoutPanel page, it tells us that it is better practice not to nest them due to debugging ... But debugging will not be a problem here.

Was it helpful?

Solution

Depends on your requirements. Please show your layout for me to provide more detailed answer. In general, I would use TableLayoutPanel + nested panels inside that. You can put multiple controls on a panel, so you should be able to accomplish what you need with it. Having nested TableLayoutPanel is not only a debugging concern, but also a UI designer's concern. I bet you will spend considerable time designing such a form and making sure it behaves as expected.

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