How to create a custom resizable container?

I have a WinForms GUI application that has several areas for it that I would like to configure on a chart. These areas will contain controls and are subject to change. I am currently thinking of inheriting from TableLayoutPaneland processing onpaint messages.

Does this sound like a good way to go or are there other / better options?

0
source share
1 answer

Any Windows Forms control has a Paint event, you do not need to output your own class. But of course you can, it helps to split the code. Just select a base class that already provides most of what you need. Set the DoubleBuffered property to true in the constructor and override OnPaint.

+1
source

Source: https://habr.com/ru/post/1755132/


All Articles