Custom control (1)

xiaoxiao2021-03-06  102

Q: Can the user control can have a form? (Should not be)

Q: It is still that the class can be packaged, (this involves self-painting form - dynamic painting controls with statement.)

T: Create a custom control method: 1. Inherit from the Control class; Applicable Timer: Want to provide a custom graphical representation of the control; you need to implement the customization of customizable from standard controls.

2, inherit from Windows Form Control; Applicable Timer: Most of the features have been the same as existing Windows Forms Controls; do not need to customize graphics interfaces, or want to design a new graphic front end for existing controls. 3, inherit from the userControl class; Applicable Timing: To synthesize a number of Windows Form Controls to a reused unit.

转载请注明原文地址:https://www.9cbs.com/read-126738.html

New Post(0)