I took some time today to follow up on a November 2002 Visual Studio.NET Magazine article entitled, "Use Declarative Field Validation" by Francesco Balena. the Extender Control that I decided to create was one that add help.
In the process of writing the above sample I came across and/or was reminded of some additional WinForms stuff that was interesting.
- By default public property on a control shows up in the design control properties list such that the value can be set at design time in the WinForms designer. Sometimes, however, this is undesirable behaviour because the property only makes sense at runtime or can not be identified by a constant. Examples of this include things like a local instance hash table. To prevent a property from showing up in the list of properties of the desgner add the BrowsableAttribute attribute to the property and specify false.
10:09:19 PM
|
|