I'm talking about the DateTimePicker from here:
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=58

I want to only allow some of the days to be selectable (like today,
yesterday, 2 days ago, and last week Thursday... only)... just seems nicer
that a populated combo box (: D

Any ideas/suggestions/"shoot downs"?

--
Chris Theorin
http://slurptheo.com

Re: DateTimePicker - Setting selectable days by Paul

Paul
Fri Oct 10 10:06:26 CDT 2003

Chris,

Sorry to say, I've never used the control myself, but one thing you might
try is to catch selection of a date and, if it's not one of the days you
want to allow, change the selection programmatically to the nearest one you
*will* allow. It's not as good an interface as disabling all the other
days, but it might work.

Paul T.

"Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
news:e9BI0QtjDHA.3316@TK2MSFTNGP11.phx.gbl...
> I'm talking about the DateTimePicker from here:
> http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=58
>
> I want to only allow some of the days to be selectable (like today,
> yesterday, 2 days ago, and last week Thursday... only)... just seems nicer
> that a populated combo box (: D
>
> Any ideas/suggestions/"shoot downs"?
>
> --
> Chris Theorin
> http://slurptheo.com
>
>



Re: DateTimePicker - Setting selectable days by Chris

Chris
Fri Oct 10 12:08:38 CDT 2003

Thanks for the suggestion Paul.

I'll have to examine this further to see if it makes sense or just ends up
being too confusing for the end user (: D

-Chris

"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument.com> wrote in message
news:%23dzjMA0jDHA.2616@TK2MSFTNGP11.phx.gbl...
> Chris,
>
> Sorry to say, I've never used the control myself, but one thing you might
> try is to catch selection of a date and, if it's not one of the days you
> want to allow, change the selection programmatically to the nearest one
you
> *will* allow. It's not as good an interface as disabling all the other
> days, but it might work.
>
> Paul T.
>
> "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
> news:e9BI0QtjDHA.3316@TK2MSFTNGP11.phx.gbl...
> > I'm talking about the DateTimePicker from here:
> > http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=58
> >
> > I want to only allow some of the days to be selectable (like today,
> > yesterday, 2 days ago, and last week Thursday... only)... just seems
nicer
> > that a populated combo box (: D
> >
> > Any ideas/suggestions/"shoot downs"?
> >
> > --
> > Chris Theorin
> > http://slurptheo.com
> >
> >
>
>



Re: DateTimePicker - Setting selectable days by Tim

Tim
Fri Oct 10 12:20:22 CDT 2003

The built-in (system) DateTimePicker that you are using, via a PInvoke
wrapper, does have the ability to force the user to select between two dates
(MinDate and MaxDate). You can see this if you try using the DateTimePicker
in a .Net desktop application. So if you can live with allowing them to
select a range of continuous days then you should be able to do this by
making some modifications to the source code for the wrapper. But if you
want them to be able to select dates that are not "side-by-side" then you
are really on your own here. Although it doesn't really sound like you need
all the features of a DateTimePicker, you could look into the fully wrapped
DateTimePicker here (http://www.intelliprog.com/netcf/dtpicker.html) to get
access to a .Net PPC control that has MinDate and MaxDate.

--
Tim Wilson
Windows Embedded MVP

"Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
news:eXjzmE1jDHA.3312@tk2msftngp13.phx.gbl...
> Thanks for the suggestion Paul.
>
> I'll have to examine this further to see if it makes sense or just ends up
> being too confusing for the end user (: D
>
> -Chris
>
> "Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument.com> wrote in message
> news:%23dzjMA0jDHA.2616@TK2MSFTNGP11.phx.gbl...
> > Chris,
> >
> > Sorry to say, I've never used the control myself, but one thing you
might
> > try is to catch selection of a date and, if it's not one of the days you
> > want to allow, change the selection programmatically to the nearest one
> you
> > *will* allow. It's not as good an interface as disabling all the other
> > days, but it might work.
> >
> > Paul T.
> >
> > "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
> > news:e9BI0QtjDHA.3316@TK2MSFTNGP11.phx.gbl...
> > > I'm talking about the DateTimePicker from here:
> > > http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=58
> > >
> > > I want to only allow some of the days to be selectable (like today,
> > > yesterday, 2 days ago, and last week Thursday... only)... just seems
> nicer
> > > that a populated combo box (: D
> > >
> > > Any ideas/suggestions/"shoot downs"?
> > >
> > > --
> > > Chris Theorin
> > > http://slurptheo.com
> > >
> > >
> >
> >
>
>



Re: DateTimePicker - Setting selectable days by Chris

Chris
Mon Oct 13 21:41:16 CDT 2003

Thanks Tim!

You're definately right that I don't need all the features of the DatePicker
here... but I'm aiming for UI consistency regardless of the "state" of the
application here:
1) When wireless I can request data for any date
2) When not wireless I want to only be able to select dates with cached
information

(: D
-Chris

"Tim Wilson [MVP]" <Tim_Wilson@[DieSpamDie]Rogers.com> wrote in message
news:eY14WK1jDHA.424@TK2MSFTNGP10.phx.gbl...
> The built-in (system) DateTimePicker that you are using, via a PInvoke
> wrapper, does have the ability to force the user to select between two
dates
> (MinDate and MaxDate). You can see this if you try using the
DateTimePicker
> in a .Net desktop application. So if you can live with allowing them to
> select a range of continuous days then you should be able to do this by
> making some modifications to the source code for the wrapper. But if you
> want them to be able to select dates that are not "side-by-side" then you
> are really on your own here. Although it doesn't really sound like you
need
> all the features of a DateTimePicker, you could look into the fully
wrapped
> DateTimePicker here (http://www.intelliprog.com/netcf/dtpicker.html) to
get
> access to a .Net PPC control that has MinDate and MaxDate.
>
> --
> Tim Wilson
> Windows Embedded MVP
>
> "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
> news:eXjzmE1jDHA.3312@tk2msftngp13.phx.gbl...
> > Thanks for the suggestion Paul.
> >
> > I'll have to examine this further to see if it makes sense or just ends
up
> > being too confusing for the end user (: D
> >
> > -Chris
> >
> > "Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument.com> wrote in message
> > news:%23dzjMA0jDHA.2616@TK2MSFTNGP11.phx.gbl...
> > > Chris,
> > >
> > > Sorry to say, I've never used the control myself, but one thing you
> might
> > > try is to catch selection of a date and, if it's not one of the days
you
> > > want to allow, change the selection programmatically to the nearest
one
> > you
> > > *will* allow. It's not as good an interface as disabling all the
other
> > > days, but it might work.
> > >
> > > Paul T.
> > >
> > > "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
> > > news:e9BI0QtjDHA.3316@TK2MSFTNGP11.phx.gbl...
> > > > I'm talking about the DateTimePicker from here:
> > > > http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=58
> > > >
> > > > I want to only allow some of the days to be selectable (like today,
> > > > yesterday, 2 days ago, and last week Thursday... only)... just seems
> > nicer
> > > > that a populated combo box (: D
> > > >
> > > > Any ideas/suggestions/"shoot downs"?
> > > >
> > > > --
> > > > Chris Theorin
> > > > http://slurptheo.com
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: DateTimePicker - Setting selectable days by Tim

Tim
Mon Oct 13 22:42:53 CDT 2003

That sounds a little outside of the idea behind the MinDate and MaxDate
properties as it appears that you might need to be able to select dates that
are not side-by-side. Have you considered simply putting the names of months
in a combobox and having a secondary combobox with the number of days in the
selected month. So when the user selects January (for example) you can make
sure that the second combobox has values 1-31 as possible selections (or in
this case only the dates that are cached). Since it sounds like the user is
only supposed to select one date at a time anyways this might be a
respectable solution (and easy).

--
Tim Wilson
Windows Embedded MVP

"Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
news:%23L7dlyfkDHA.976@tk2msftngp13.phx.gbl...
> Thanks Tim!
>
> You're definately right that I don't need all the features of the
DatePicker
> here... but I'm aiming for UI consistency regardless of the "state" of the
> application here:
> 1) When wireless I can request data for any date
> 2) When not wireless I want to only be able to select dates with cached
> information
>
> (: D
> -Chris
>
> "Tim Wilson [MVP]" <Tim_Wilson@[DieSpamDie]Rogers.com> wrote in message
> news:eY14WK1jDHA.424@TK2MSFTNGP10.phx.gbl...
> > The built-in (system) DateTimePicker that you are using, via a PInvoke
> > wrapper, does have the ability to force the user to select between two
> dates
> > (MinDate and MaxDate). You can see this if you try using the
> DateTimePicker
> > in a .Net desktop application. So if you can live with allowing them to
> > select a range of continuous days then you should be able to do this by
> > making some modifications to the source code for the wrapper. But if you
> > want them to be able to select dates that are not "side-by-side" then
you
> > are really on your own here. Although it doesn't really sound like you
> need
> > all the features of a DateTimePicker, you could look into the fully
> wrapped
> > DateTimePicker here (http://www.intelliprog.com/netcf/dtpicker.html) to
> get
> > access to a .Net PPC control that has MinDate and MaxDate.
> >
> > --
> > Tim Wilson
> > Windows Embedded MVP
> >
> > "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
> > news:eXjzmE1jDHA.3312@tk2msftngp13.phx.gbl...
> > > Thanks for the suggestion Paul.
> > >
> > > I'll have to examine this further to see if it makes sense or just
ends
> up
> > > being too confusing for the end user (: D
> > >
> > > -Chris
> > >
> > > "Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument.com> wrote in
message
> > > news:%23dzjMA0jDHA.2616@TK2MSFTNGP11.phx.gbl...
> > > > Chris,
> > > >
> > > > Sorry to say, I've never used the control myself, but one thing you
> > might
> > > > try is to catch selection of a date and, if it's not one of the days
> you
> > > > want to allow, change the selection programmatically to the nearest
> one
> > > you
> > > > *will* allow. It's not as good an interface as disabling all the
> other
> > > > days, but it might work.
> > > >
> > > > Paul T.
> > > >
> > > > "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in
message
> > > > news:e9BI0QtjDHA.3316@TK2MSFTNGP11.phx.gbl...
> > > > > I'm talking about the DateTimePicker from here:
> > > > > http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=58
> > > > >
> > > > > I want to only allow some of the days to be selectable (like
today,
> > > > > yesterday, 2 days ago, and last week Thursday... only)... just
seems
> > > nicer
> > > > > that a populated combo box (: D
> > > > >
> > > > > Any ideas/suggestions/"shoot downs"?
> > > > >
> > > > > --
> > > > > Chris Theorin
> > > > > http://slurptheo.com
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: DateTimePicker - Setting selectable days by Chris

Chris
Wed Oct 15 18:19:05 CDT 2003

My original post was to get away from using a ComboBox, let alone mutliple
ComboBoxes. I'm usually dealing with a number of dates which are mangeable
in a single combo box... just going for GUI consistency when all days are
available (wireless) and when only some days are available...

I guess letting users click a day in cached mode with no information isn't
much different than them clicking a day in wireless mode with no
information... just seems like a waste for them to possibly select a date I
know will not have any chance of having information.

No biggie and thanks for the suggestions guys!

-Chris

"Tim Wilson [MVP]" <Tim_Wilson@[DieSpamDie]Rogers.com> wrote in message
news:%23liMKUgkDHA.3320@tk2msftngp13.phx.gbl...
> That sounds a little outside of the idea behind the MinDate and MaxDate
> properties as it appears that you might need to be able to select dates
that
> are not side-by-side. Have you considered simply putting the names of
months
> in a combobox and having a secondary combobox with the number of days in
the
> selected month. So when the user selects January (for example) you can
make
> sure that the second combobox has values 1-31 as possible selections (or
in
> this case only the dates that are cached). Since it sounds like the user
is
> only supposed to select one date at a time anyways this might be a
> respectable solution (and easy).
>
> --
> Tim Wilson
> Windows Embedded MVP
>
> "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
> news:%23L7dlyfkDHA.976@tk2msftngp13.phx.gbl...
> > Thanks Tim!
> >
> > You're definately right that I don't need all the features of the
> DatePicker
> > here... but I'm aiming for UI consistency regardless of the "state" of
the
> > application here:
> > 1) When wireless I can request data for any date
> > 2) When not wireless I want to only be able to select dates with cached
> > information
> >
> > (: D
> > -Chris
> >
> > "Tim Wilson [MVP]" <Tim_Wilson@[DieSpamDie]Rogers.com> wrote in message
> > news:eY14WK1jDHA.424@TK2MSFTNGP10.phx.gbl...
> > > The built-in (system) DateTimePicker that you are using, via a PInvoke
> > > wrapper, does have the ability to force the user to select between two
> > dates
> > > (MinDate and MaxDate). You can see this if you try using the
> > DateTimePicker
> > > in a .Net desktop application. So if you can live with allowing them
to
> > > select a range of continuous days then you should be able to do this
by
> > > making some modifications to the source code for the wrapper. But if
you
> > > want them to be able to select dates that are not "side-by-side" then
> you
> > > are really on your own here. Although it doesn't really sound like you
> > need
> > > all the features of a DateTimePicker, you could look into the fully
> > wrapped
> > > DateTimePicker here (http://www.intelliprog.com/netcf/dtpicker.html)
to
> > get
> > > access to a .Net PPC control that has MinDate and MaxDate.
> > >
> > > --
> > > Tim Wilson
> > > Windows Embedded MVP
> > >
> > > "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in message
> > > news:eXjzmE1jDHA.3312@tk2msftngp13.phx.gbl...
> > > > Thanks for the suggestion Paul.
> > > >
> > > > I'll have to examine this further to see if it makes sense or just
> ends
> > up
> > > > being too confusing for the end user (: D
> > > >
> > > > -Chris
> > > >
> > > > "Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument.com> wrote in
> message
> > > > news:%23dzjMA0jDHA.2616@TK2MSFTNGP11.phx.gbl...
> > > > > Chris,
> > > > >
> > > > > Sorry to say, I've never used the control myself, but one thing
you
> > > might
> > > > > try is to catch selection of a date and, if it's not one of the
days
> > you
> > > > > want to allow, change the selection programmatically to the
nearest
> > one
> > > > you
> > > > > *will* allow. It's not as good an interface as disabling all the
> > other
> > > > > days, but it might work.
> > > > >
> > > > > Paul T.
> > > > >
> > > > > "Chris Theorin" <slurptheoNO@SPAMslurptheo.PLEASEcom> wrote in
> message
> > > > > news:e9BI0QtjDHA.3316@TK2MSFTNGP11.phx.gbl...
> > > > > > I'm talking about the DateTimePicker from here:
> > > > > > http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=58
> > > > > >
> > > > > > I want to only allow some of the days to be selectable (like
> today,
> > > > > > yesterday, 2 days ago, and last week Thursday... only)... just
> seems
> > > > nicer
> > > > > > that a populated combo box (: D
> > > > > >
> > > > > > Any ideas/suggestions/"shoot downs"?
> > > > > >
> > > > > > --
> > > > > > Chris Theorin
> > > > > > http://slurptheo.com
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>