You use them to group a set of controls and behavior together in a reusable way. You cannot show the control on screen unless it is added to the form somewhere.
One good example is a text box. Very often there is a shortcut next to your text fields. You can create a custom control to make it easier. Just remove the shortcut and text field on the control, show all your properties, configure a new control on the toolbar, and now you can simply drop this control on your form, and not place the shortcut and toolbar on the form separately.
You might think of them as a panel that โremembersโ what controls you. And one more important thing. You can also put code in these controls and use it to create special actions in your custom controls.
Joel Coehoorn
source share