Classification Of Components

Oct 08, 2023

The components are not very complicated, and the .Net provided us with rich underlying support. If you have the development experience of the MFC or API graphics interface, it may take only a short time to learn .NET components. There are usually three types of components developed by yourself: composite controls, extended components, and Custom Controls.


Composite component: Combining the existing various components to form a new component to concentrate the performance of the centralized component.


Extended component: A new component is sent to the entry of the existing component components to add new performance to the original component or change the control of the original component.


Custom component: Directly derived from System.Forms.Control. The Control class provides all entry properties required for components, including keyboards and mouse events processing. Custom components are the most flexible and powerful ways, but the requirements for developers are relatively high. You must write a source code for the OnPaint event of the Control class. You can also rewrite the WNDProc method of the Control class to deal with the bottom -level work. Windows message, so you should learn GDI+and make Windows API.