PC Review


Reply
Thread Tools Rate Thread

Date Time Picker

 
 
Charles A. Lackman
Guest
Posts: n/a
 
      24th Nov 2004
Hello,

I have a DateTimePicker on my form and I need to make every Even week Red
and every Odd week Yellow.

Any Suggestions will be greatly appreciated (Detailed help is even more
appreciated).

Thanks,

Chuck


 
Reply With Quote
 
 
 
 
Ken Dopierala Jr.
Guest
Posts: n/a
 
      24th Nov 2004
Hi Chuck,

Are you talking about the Calendar server control that comes with ASP.Net?
If so, I don't see any properties on it that let you do that. So in order
to make it happen you need to override the Render event for that control and
modify the output from there. The easiest way would be to set the color of
the day to some odd value. Then in the render event find where that value
is and set it's color alternating by 7s. If this is a control you created
then the easiest way would be to alternate the value of the color everytime
you start a new row. If you aren't using the Calendar control could you
post some code to see what you are doing. I'm not sure how to answer this
question. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Charles A. Lackman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have a DateTimePicker on my form and I need to make every Even week Red
> and every Odd week Yellow.
>
> Any Suggestions will be greatly appreciated (Detailed help is even more
> appreciated).
>
> Thanks,
>
> Chuck
>
>



 
Reply With Quote
 
Chuck
Guest
Posts: n/a
 
      24th Nov 2004
Hello And Thanks,

I am using a Windows Forms DateTimePicker.. ??

Chuck

"Ken Dopierala Jr." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Chuck,
>
> Are you talking about the Calendar server control that comes with ASP.Net?
> If so, I don't see any properties on it that let you do that. So in order
> to make it happen you need to override the Render event for that control
> and
> modify the output from there. The easiest way would be to set the color
> of
> the day to some odd value. Then in the render event find where that value
> is and set it's color alternating by 7s. If this is a control you created
> then the easiest way would be to alternate the value of the color
> everytime
> you start a new row. If you aren't using the Calendar control could you
> post some code to see what you are doing. I'm not sure how to answer this
> question. Good luck! Ken.
>
> --
> Ken Dopierala Jr.
> For great ASP.Net web hosting try:
> http://www.webhost4life.com/default.asp?refid=Spinlight
> If you sign up under me and need help, email me.
>
> "Charles A. Lackman" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hello,
>>
>> I have a DateTimePicker on my form and I need to make every Even week Red
>> and every Odd week Yellow.
>>
>> Any Suggestions will be greatly appreciated (Detailed help is even more
>> appreciated).
>>
>> Thanks,
>>
>> Chuck
>>
>>

>
>



 
Reply With Quote
 
Ken Dopierala Jr.
Guest
Posts: n/a
 
      24th Nov 2004
Hi Chuck,

Sorry! I forgot what forum I was in. I was thinking ASP.Net all the way
and didn't realize this was the general forum. Hopefully someone will
provide you with the correct answer soon. Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Chuck" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello And Thanks,
>
> I am using a Windows Forms DateTimePicker.. ??
>
> Chuck
>
> "Ken Dopierala Jr." <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi Chuck,
> >
> > Are you talking about the Calendar server control that comes with

ASP.Net?
> > If so, I don't see any properties on it that let you do that. So in

order
> > to make it happen you need to override the Render event for that control
> > and
> > modify the output from there. The easiest way would be to set the color
> > of
> > the day to some odd value. Then in the render event find where that

value
> > is and set it's color alternating by 7s. If this is a control you

created
> > then the easiest way would be to alternate the value of the color
> > everytime
> > you start a new row. If you aren't using the Calendar control could you
> > post some code to see what you are doing. I'm not sure how to answer

this
> > question. Good luck! Ken.
> >
> > --
> > Ken Dopierala Jr.
> > For great ASP.Net web hosting try:
> > http://www.webhost4life.com/default.asp?refid=Spinlight
> > If you sign up under me and need help, email me.
> >
> > "Charles A. Lackman" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >> Hello,
> >>
> >> I have a DateTimePicker on my form and I need to make every Even week

Red
> >> and every Odd week Yellow.
> >>
> >> Any Suggestions will be greatly appreciated (Detailed help is even more
> >> appreciated).
> >>
> >> Thanks,
> >>
> >> Chuck
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
nick
Guest
Posts: n/a
 
      30th Nov 2004
Slightly off topic but then again, maybe not...

Keep in mind that week numbers are not calculated the same way everywhere,
just like the first day of the week is not always Sunday. It can also be
Monday. The 2nd of January 2005 is in week 1 in some parts of the World and
in week 53 in other.


"Charles A. Lackman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have a DateTimePicker on my form and I need to make every Even week Red
> and every Odd week Yellow.
>
> Any Suggestions will be greatly appreciated (Detailed help is even more
> appreciated).
>
> Thanks,
>
> Chuck
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting current date on date/time picker control =?Utf-8?B?RG91Z00=?= Microsoft Access VBA Modules 1 19th Jul 2005 08:07 PM
I am trying to use the Microsoft Date and Time Picker control and I am getting the following error "an error occured in a call to the windows date and time picker control" in access 2000 Ralph Malph Microsoft Access Forms 0 25th Oct 2004 08:00 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook Form Programming 1 23rd Jan 2004 04:31 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook VBA Programming 1 22nd Jan 2004 03:48 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook Program Addins 0 14th Jan 2004 07:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.