Holidays in Calendar Extendar

Discussion in 'Software' started by Anjut, Sep 19, 2009.

  1. Anjut

    Anjut

    Joined:
    Sep 18, 2009
    Messages:
    6
    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
     
    Anjut, Sep 19, 2009
    #1
    1. Advertising

  2. Anjut

    Anjut

    Joined:
    Sep 18, 2009
    Messages:
    6
    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.ToString()).Date.ToString("dd/MM/yy");
    }
    }

    I hope it helps
     
    Anjut, Oct 26, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jincmcse
    Replies:
    1
    Views:
    8,752
  2. Network Guru

    Happy Holidays Frisbee ©

    Network Guru, Dec 18, 2003, in forum: MCSE
    Replies:
    1
    Views:
    436
    =?Windows-1252?Q?Frisbee=AE_MCNGP?=
    Dec 18, 2003
  3. =?iso-8859-1?Q?Frisbee=AE_MCNGP?=

    OT: A wonderful drink for the holidays

    =?iso-8859-1?Q?Frisbee=AE_MCNGP?=, Dec 30, 2003, in forum: MCSE
    Replies:
    3
    Views:
    411
    =?iso-8859-1?Q?Frisbee=AE_MCNGP?=
    Dec 31, 2003
  4. Synapse Syndrome
    Replies:
    0
    Views:
    860
    Synapse Syndrome
    Dec 2, 2007
  5. iccsi

    Calendar GadGets does not show calendar

    iccsi, Aug 12, 2011, in forum: Windows 64bit
    Replies:
    4
    Views:
    1,673
Loading...

Share This Page