|How do I make a read-only property? [message #617025]
||Wed, 02 April 2008 17:50
| Eli Lato
Registered: July 2009
I have a field named x.|
I want it to be visible in the Property Sheet only when the designer selects "Show read only properties".
I want to make it a read-only field, so I created a getX, but not a setX.
But when I tell getPropertyDescriptors to add the property, it throws because I have no setX.
PropertyDescriptor doesn't seem to have a setter to specify readOnly. Or did I miss it?
How do I create a readOnly property?
Powered by FUDForum
. Page generated in 0.02915 seconds