Hello,
I want to make a usercontrol thats acts as a "container" for other controls at design time.
I found out how to do this in C# http://support.microsoft.com/?scid=kb%3Ben-us%3B813450&x=21&y=15.
Unfortunately, OE does not support attributes like C#.
Does anybody know a way how to archive this in OE?
By implementing ICustomTypeDescriptor you implement the GetAttributes method. So you return all you need to return.
The basis is coming the default TypeDescriptor,that you call into. Then you add your additional attributes.
I already implementd the ICustomTypeDescriptor interface but i don't know what attributes to set there.
I tried to set the object in the GetAttributes Method but it didn't change anything
yeah sorry that was poolry expressed.
I already create the DesignerAttribute Object but i can't seem to add it in the AttributeCollection that is returned because it has only "get methods/properties".
By implementing ICustomTypeDescriptor you implement the GetAttributes method. So you return all you need to return.
The basis is coming the default TypeDescriptor,that you call into. Then you add your additional attributes.
i understand that but i don't know how i add my newly created attribute to the attributecollection that i get from the typedesciptor, because everything is only "get", not "set" in this collection
do i need to create a new collection myself?
thank you, it worked