control properties

APaule

Centurion
Joined
Mar 26, 2003
Messages
105
I would like to add a property for an inherited control in order to be displayed in the property window during design-time.
In my example it is a simple boolean property.
I know that I have to use a Designer and that I need the PreFilterProperties method.
But thats it. So, can anyone help me please, to solve that problem.
 
Actually, I've added properties to inherited controls and they show up automatically in the properties window (A bool property has the usual True/False choices). Just make sure your property is public.

-ner
 
Hey thx, that's right!!!
I did not check this, because I was after the solution for the Control Designer.
So what is the PreFilterProperties method for, when added properties are added to the Properties Window anyway?
 
That method allows you to add properties to the object you are designing, from the designer. In other words, design-time only properties.
 
Can you give an example, please.
Because I have no idea at the moment what properties I could use at design-time only.
 
It's very uncommon, and I can't think of many examples. One is the designers adding a GridSize property to things like Panels though.
 
Back
Top