# C1.Win.C1Input.DateEditMonthCalendar.MonthChanged

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_C1Input_DateEditMonthCalendar_MonthChanged" data-uid="C1.Win.C1Input.DateEditMonthCalendar.MonthChanged" class="text-break">MonthChanged Event
</h1>
<div class="markdown level0 summary"><p>Handles the month change in the Dropdown calendar in C1DateEdit.
Occurs when the value of the <a class="xref" href="C1.Win.C1Input.DateEditMonthCalendar.FirstMonth.html#C1_Win_C1Input_DateEditMonthCalendar_FirstMonth">FirstMonth</a> or <a class="xref" href="C1.Win.C1Input.DateEditMonthCalendar.LastMonth.html#C1_Win_C1Input_DateEditMonthCalendar_LastMonth">LastMonth</a> property changes.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Input.html">C1.Win.C1Input</a></h6>
<h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
<h5 id="C1_Win_C1Input_DateEditMonthCalendar_MonthChanged_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler MonthChanged</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event MonthChanged As EventHandler</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler">EventHandler</a></td>
      <td>Handles the month change in the Dropdown calendar in C1DateEdit. Occurs when the value of the  or  property changes.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Input_DateEditMonthCalendar_MonthChanged_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Can be used to set some dates in the month to bold as user scrolls through the months.</p>
</div>
<h5 id="C1_Win_C1Input_DateEditMonthCalendar_MonthChanged_examples"><strong>Examples</strong></h5>
<p>This example sets a new bolded date in the selected month.</p>
<pre><code class="lang-csharp">private void c1DateEdit1_Calendar_MonthChanged(object sender, EventArgs e)
{
   DateTime dt = c1DateEdit1.Calendar.FirstMonth;
   c1DateEdit1.Calendar.AddBoldedDate(new DateTime(dt.Year, dt.Month, dt.Month));
}</code></pre>

</div>
