G
Guest
I have a control, let's call it MyControl. One of the properties of
MyControl is MyControlStyle. MyControlStyle is a class with a number of
properties. MyControl always has a valid instance of MyControlStyle (it is
instantiated in the field declaration).
In the property grid, I want to lay out the items in MyControlStyle when
someone selects a MyControl on the form. They are all simple data types and
don't require any sort of custom designers or anything in themselves.
How do I get the properties of MyControlStyle to show up in the property
grid without duplicating the properties in MyControl. I mean, if I have to
pass the properties through like that then it's kind of pointless to have
the MyControlStyle class separate.
Thanks.
Pete
MyControl is MyControlStyle. MyControlStyle is a class with a number of
properties. MyControl always has a valid instance of MyControlStyle (it is
instantiated in the field declaration).
In the property grid, I want to lay out the items in MyControlStyle when
someone selects a MyControl on the form. They are all simple data types and
don't require any sort of custom designers or anything in themselves.
How do I get the properties of MyControlStyle to show up in the property
grid without duplicating the properties in MyControl. I mean, if I have to
pass the properties through like that then it's kind of pointless to have
the MyControlStyle class separate.
Thanks.
Pete