Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27353

[RESOLVED] Error when creating form

$
0
0
As soon as I click debug, I get the following error:

InvalidOperationException was Unhandled
An error occurred creating the form. See Exception.InnerException for details. The error is: Value of '01/01/0001' is not valid for 'SelectionStart'. 'SelectionStart' must be greater than or equal to MinDate.
Parameter name: SelectionStart

On my form I have a MonthCalendar control which is what I assume the error is about as I don't have anything else with a SelectionStart property.
The MinDate for the month calendar is 01/07/2013
The MaxDate for the month calendar is 31/12/2199

The Selection range is 17/07/2013, 17/07/2013
The MaxSelectionCount is 1.

This happens before the form load event which I have a breakpoint on, so I am not sure where to look to start fixing it.
It brings it up in a new tab called "No Source Available"

Viewing all articles
Browse latest Browse all 27353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>