S
sonum
I am creating a custom control with 3 dropdownlists (day, month,
year)
which I will use as a date selector. I want to be able to reuse all my
code
and cut programming repetition down a lot (I don't mind spending a lot
of
time on something if I don't have to do it again).
My question is, with the day selector, how should I store a list of
numbers
from 1 to 31 to bind to the dropdownlistbox? I could run a loop and
create
it like that but why not just have an existing array or enum or
something.
With the month selector I am using an enumerator to hold all the month
names
but it doesnt seem efficient to use one for a list of numbers.
Does anyone have any suggestions? If you help me out I will even give
you
this control when I'm finished (and anyone who wants it).
year)
which I will use as a date selector. I want to be able to reuse all my
code
and cut programming repetition down a lot (I don't mind spending a lot
of
time on something if I don't have to do it again).
My question is, with the day selector, how should I store a list of
numbers
from 1 to 31 to bind to the dropdownlistbox? I could run a loop and
create
it like that but why not just have an existing array or enum or
something.
With the month selector I am using an enumerator to hold all the month
names
but it doesnt seem efficient to use one for a list of numbers.
Does anyone have any suggestions? If you help me out I will even give
you
this control when I'm finished (and anyone who wants it).