Could you assist in writing a prompt, which purpose is to write more detailed instructions to create a Custom Control in WinForms. You are strongly encourage to amend important facts or instructions and could help to improve the result.
Some base information about creating custom controls in WinForms:
- We talk about a "custom control", so, not designable, no code-behind file, not derived from
UserControl. - Properties needs to have some sort of serialization control (DefaultValue, ShouldSerialize, DesignerSerialization)
- Include infos for the PropertyGrid.
- Include XML.
The actual control in this case should satisfy the following: