Disappearing expand indicators on PropertyGrid
-
In my property grid I have a couple of properties that have an expand ("+") indicators next to them. When I click on them the indicators disappear. These properties don't have any sub-properties to display so I'm not sure why the expand indicator is even drawn. If I change a property in the propertygrid and it is re-drawn the indicators come back. Any ideas? Functionally it isn't a problem, it's just ugly.
-
In my property grid I have a couple of properties that have an expand ("+") indicators next to them. When I click on them the indicators disappear. These properties don't have any sub-properties to display so I'm not sure why the expand indicator is even drawn. If I change a property in the propertygrid and it is re-drawn the indicators come back. Any ideas? Functionally it isn't a problem, it's just ugly.
For that particular property, is its return value an object that has properties of its own? The problem may be occuring because the property has subproperties but the IDE does not know how to design them. This would mean the '+' would go away.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com
-
For that particular property, is its return value an object that has properties of its own? The problem may be occuring because the property has subproperties but the IDE does not know how to design them. This would mean the '+' would go away.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com
Yes they are objects that have properties of their own, with BrowsableAttribute set to false. Do you see a workaround for this? Edit: I stand corrected. I just built a small test case with the return property having NO sub-properties and the phantom expand mark still showed up.
modified on Thursday, July 31, 2008 12:49 PM
-
Yes they are objects that have properties of their own, with BrowsableAttribute set to false. Do you see a workaround for this? Edit: I stand corrected. I just built a small test case with the return property having NO sub-properties and the phantom expand mark still showed up.
modified on Thursday, July 31, 2008 12:49 PM
I can't think of anything off of the top of my head that would prevent that attribute from working :doh: . The only thing that might be able to help is an article I wrote on design-time events[^], but even then it doesn't have the specifics of what you are looking for.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com
-
I can't think of anything off of the top of my head that would prevent that attribute from working :doh: . The only thing that might be able to help is an article I wrote on design-time events[^], but even then it doesn't have the specifics of what you are looking for.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com