C# Group new properties
-
Hi World of CodeProject! I am writing a userControl(in C# coding) and I added some new Properties to it, Now my question is that : How can I group this properties ,(Same as .Net that group it properties for each control)
-
Hi World of CodeProject! I am writing a userControl(in C# coding) and I added some new Properties to it, Now my question is that : How can I group this properties ,(Same as .Net that group it properties for each control)
If you mean grouping them in the property grid then you can use the Component[^] attribute
Dave
Tip: Passing values between objects using events (C#) BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
If you mean grouping them in the property grid then you can use the Component[^] attribute
Dave
Tip: Passing values between objects using events (C#) BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)No I mean like Size it has to properties in it --->width,Height
-
No I mean like Size it has to properties in it --->width,Height
the Size property is a struct, i.e. a composite type. That's what causes its members to be grouped. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]
-
No I mean like Size it has to properties in it --->width,Height
This[^] isn't the best article I've ever done (I should really revisit it and improve it!) but it will show you how it's done.
Dave
Tip: Passing values between objects using events (C#) BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)