how can I make a user-defined type (class) appear in property grid of a custom control?

Aug 23 2007 10:14 AM

I've created a class for a telephone number containing the properties: country code, area code, prefix, and suffix

I've created a cusom control and included the phone number class as a property, but it's grey'd out in the property grid for the control when I place it on a Winform.

 I was hoping someone could explain how to make the phone number class appear as other types such as a Point where you can expand the point property and you'll see the individual properties X and Y.

Thanx in advance


Answers (2)