How to create a custom component in a form in C # 2010?

I want to create a custom component in C #, and the custom component will act as a caliber and consist of a panel with several icons inside it. Is there a way to create a custom panel component with all of these elements inside it, and then interact with it as a single component?

+3
source share
1 answer

It is called a Usercontrol (or composite control):

. : : Windows Forms,

.NET

  • Visual # Windows Forms Control Library WindowsFormsControlLibrary1: "" "", ". Visual # Windows Forms. WindowsFormsControlLibrary1 , OK. default, .NET UserControl1.

  • UserControl1: . Button UserControl1. TextBox.

  • UserControl1.Designer.cs, . . TextBox Button .

  • : " "" ".

.

+5

All Articles