|
-
April 25th, 2007, 02:57 AM
#1
[RESOLVED] Change Calendar control attributes
I'm trying to change the attributes from a calendar control in framework 1.1. But whatever I do nothing changes what am I doing wrong? I also want to remove the underlining of the dates?
Code:
this.calendar = new Calendar();
this.calendar.BackColor = Color.Pink;
this.calendar.SelectedDate = DateTime.Now;
this.calendar.ShowDayHeader = true;
//TodayDayStyle.BackColor = Color.Chocolate;
Last edited by Visslan; April 25th, 2007 at 03:19 AM.
-
April 25th, 2007, 09:50 AM
#2
Re: Change Calendar control attributes
your constructing a new calendar and adjusting its properites.
you should place the calendar on your aspx page and just reference it by its id name
like
this.myCalendarName.BackColor = Color.Pink
your line
Code:
this.calendar = new Calendar();
is creating a new calendar object that your editing, and im guessing that its not on the page. i think you can just drop that line and you should get it working
hth,
mcm
rate my posts!
mcm
-
April 26th, 2007, 05:37 AM
#3
Re: Change Calendar control attributes
-
April 26th, 2007, 01:59 PM
#4
Re: Change Calendar control attributes
if it helped please rate the post.
thanks,
mcm
rate my posts!
mcm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|