I am creating a custom Windows Forms control in C# with several custom properties. One of those properties is a simple struct with several integral fields:
public struct Test
{
public int A, B;
}
Test _Test;
[Category("MyCategory")]
public Test TestProperty
{
get { return _Test; }
set { _Test = value; }
}
I want the Visual Studio designer to edit the fields of my structure the same way as it does for Size, Margins and other similar Windows Forms structures. Do I need to implement a custom property editor based on UITypeEditor class, or is there some common "structure editor" provided by .Net framework?
solved, just wait till your 8 hours is up then add it as an answer, then wait whatever stand-down period there is before marking it as the answer. - slugster