Custom Control Help

  • Thread starter Thread starter graeme g
  • Start date Start date
G

graeme g

Hi

I have a control i've written which works fine... but my question is this...

some of the properties in the control are actually a class and i want to
be able to view the properties of that class... e.g. like Font, so i
want to able to display a + - next to it

how do i do this?

I'm sure its very simple and i'm just missing it, i google'd it and
couldn't really find much...

any questions let me know

thanks in advance
graeme
 
graeme said:
I have a control i've written which works fine... but my question is
this...

some of the properties in the control are actually a class and i want to
be able to view the properties of that class... e.g. like Font, so i
want to able to display a + - next to it

how do i do this?

Right in front of the class type property, try putting this line:

[TypeConverter(typeof(ExpandableObjectConverter))]

And don't forget to have

using System.ComponentModel;




Oliver Sturm
 
Oliver said:
graeme said:
I have a control i've written which works fine... but my question is
this...

some of the properties in the control are actually a class and i want
to be able to view the properties of that class... e.g. like Font, so
i want to able to display a + - next to it

how do i do this?


Right in front of the class type property, try putting this line:

[TypeConverter(typeof(ExpandableObjectConverter))]

And don't forget to have

using System.ComponentModel;




Oliver Sturm
yay! it worked.... thanks for the quick response :-)
 
Back
Top