memorysizelabelpanelfootprint

Which is smaller footprint in C#


A lable sized like a rectangle with no text but has a border and is invisible (for a visual rectangle on the form around controls but not to contain the controls) or a panel?


Solution

  • What you want to use is a GroupBox. Not that it really matters, most likely, but a label should be cheaper than a panel.