C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,615 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to select multiple days in my monthView1, but
the error message say."System.Exception: 'Days between ViewStart and ViewEnd should be between 1 and MaximumViewDays'"
and here my code.
private void monthView1_SelectionChanged(object sender, EventArgs e)
{
calendar1.SetViewRange(monthView1.SelectionStart, monthView1.SelectionEnd);
}
I think the code is throwing custom exception and suggesting that selected dates should be within range which is probably set in MaximumViewDays.