Trouble with TypeConverter


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I have a control that includes a property that is an object that has two properties within it, a string and an integer. I'd like this property to be an expandable property at design time in the property grid (like font, location, margins, ect are). I've figured out that I need a TypeConverter for the object and have built that. I figure out that I need to either override the GetPropertiesSupported and GetProperties methods or inherit from ExpandableObjectConverter (I've tried both) to get the parent object to expand into properties.



The problem is that when that property is Nothing (null), I can't expand it. Once I put in some appropriate text, then the plus sign shows up and the object's properties are expandable and shown. It is very likely something stupid, but how do I get the property to be expandable when the property is Nothing (null)?



Thanks!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Greg McGuffey - 16 Years Ago
Trent L. Taylor - 16 Years Ago
Greg McGuffey - 16 Years Ago
                         I know y'all are busy, but if anyone gets chance, I've love some...
Greg McGuffey - 16 Years Ago
                             Sorry, Greg. We have just been swamped lately. We are in class this...
Trent L. Taylor - 16 Years Ago
                                 Totally understand. Hope training is going well (I'm sure it is). I...
Greg McGuffey - 16 Years Ago
                                     OK....sorry for the REALLY long delay on this one. But I have changed...
Trent L. Taylor - 16 Years Ago
                                         No problem on the delay. Thanks I'll take a look at it! This is much...
Greg McGuffey - 16 Years Ago
                                             I had a chance (finally) to look at this. I got it working quite...
Greg McGuffey - 16 Years Ago
                                                 Cool...glad it worked out for you! :)
Trent L. Taylor - 16 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search