Hi there
How can i solve this problem??
P Property is here...
and MyClass class is here....
How can i solve this problem??
P Property is here...
Code:
public partial class combo : ComboBox { public combo() { InitializeComponent(); } private MyClass p = new MyClass(2, 4); public MyClass P { get { return p; } set { p = value; } } }
Code:
[TypeConverter(typeof(ExpandableObjectConverter))] public class MyClass { private int _width, _hieght; public MyClass() { } public MyClass(int width, int height) { _width = width; _hieght = height; } public int Width { get { return _width; } set { _width = value; } } public int Height { get { return _hieght; } set { _hieght = value; } } }
Comment