Hello,
Can any one please tell me how to add properties in a component, where you can set more than one value.
For example, with the following code, MyPoints shows in the properties window and you can expand it to set the X and Y co-ordinates
But I cannot figure out how to do it with my own structures or classesCode:public partial class UserControl1 : UserControl { public Point MyPoints { get; set; } }
EG
With the above it just shows a greyed out "ControlGrid.MyColumns" in the properties windowsCode:public partial class UserControl1 : UserControl { public MyColumns Columns { get; set; } } public struct MyColumns { public int Width { get; set; } public int Height { get; set; } }
Any ideas as to if this is possible?
Surely it must be if you do it for things like Point


Reply With Quote
Bookmarks