MonthCalendar.RemoveAllBoldedDates Method ()

 

Removes all the nonrecurring bold dates.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void RemoveAllBoldedDates()

This method clears the BoldedDates array. To remove a single date from the bold dates, use the RemoveBoldedDate method.

You must call the UpdateBoldedDates method to ensure that the display is updated to reflect the removal.

The following code example demonstrates how to use the RemoveAllBoldedDates method.

private void button3_Click(object sender, System.EventArgs e)
{
    monthCalendar1.RemoveAllBoldedDates();
    monthCalendar1.UpdateBoldedDates();
    listBox1.Items.Clear();
    button3.Enabled = false ;
}

.NET Framework
Available since 1.1
Return to top
Show: