Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Holidays in Calendar Extendar

Reply
Thread Tools

Holidays in Calendar Extendar

 
 
Anjut Anjut is offline
Junior Member
Join Date: Sep 2009
Posts: 7
 
      09-19-2009
How can i select multiple dates from calendar. Also if i want to take some days from database and mark them as holidays in calendar extendar how will i do it.

Thanks in advance
 
Reply With Quote
 
 
 
 
Anjut Anjut is offline
Junior Member
Join Date: Sep 2009
Posts: 7
 
      10-26-2009
I did it then through following code
static ArrayList adate = new ArrayList();

private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
{
adate.Add(e.End.Date);
monthCalendar1.AddBoldedDate(e.End.Date);
//monthCalendar1.TitleBackColor = System.Drawing.Color.Red;
}

private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < adate.Count; i++)
{
textBox1.Text = textBox1.Text + "," + Convert.ToDateTime(adate[i].ToString()).Date.ToString("dd/MM/yy");
}
}

I hope it helps
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
How to show holidays in a different color in calendar web server control? Simon ASP .Net 4 06-20-2008 06:31 AM
OT: Merry New Holidays Frisbee® MCSE 1 01-01-2006 10:48 PM
OT: A wonderful drink for the holidays =?iso-8859-1?Q?Frisbee=AE_MCNGP?= MCSE 3 12-31-2003 01:34 PM
Happy Holidays Frisbee © Network Guru MCSE 1 12-18-2003 02:14 PM
State holidays Bob ASP .Net 8 12-16-2003 09:17 PM



Advertisments