المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Custom Control expandable property ordering.



C# Programming
01-12-2010, 10:50 AM
If you create a custom control with an expandable property (i.e. it has a "+" in the properties window which expands to show you the individual subfields - similar to the Size property of most controls), how do you control the display order of these sub fields?

I have got the control working, with an expandable property containing minWidth, initialWidth and maxWidth, but in the designer they always display in aphabetical order: initialWidth, maxWidth, minWidth. I know it is possible (Size displays as Width first, then Height) - but google is being unhelpful as to how!

All those who believe in psycho kinesis, raise my hand.