G
Guest
I have created a control and added a few properties. One of these is an
array of DateTime objects, looking like this:
[Browsable(true), EditorBrowsable(EditorBrowsableState.Always),
Description("whatever"), Category("look")]
public DateTime [] MyDates
{
get { return theDate;}
set {theDate = value;}
}
When I add my control to the form I can open the DateTime collection editor
from the properties window and set certain dates, but they do not seem to
show on my control, whereas creating an array of DateTimes in code works
fine. In fact, when I go back into the DateTime editor after running the
program, the list only contains one entry, despite having entered 6
previously.
Does anyone know a way round this?
array of DateTime objects, looking like this:
[Browsable(true), EditorBrowsable(EditorBrowsableState.Always),
Description("whatever"), Category("look")]
public DateTime [] MyDates
{
get { return theDate;}
set {theDate = value;}
}
When I add my control to the form I can open the DateTime collection editor
from the properties window and set certain dates, but they do not seem to
show on my control, whereas creating an array of DateTimes in code works
fine. In fact, when I go back into the DateTime editor after running the
program, the list only contains one entry, despite having entered 6
previously.
Does anyone know a way round this?