Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

Commented Unassigned: TriggerEditDialog: DateTime out of range [12117]

$
0
0
Run this code:
var trigger = new TimeTrigger();
trigger.EndBoundary = new DateTime(2016, 1, 1);
var dialog = new TriggerEditDialog(trigger, supportV1Only: false);
dialog.ShowDialog();

Then interactive with the dialog:
1. Uncheck Expire
2. Change to "At log on"
3. Uncheck Activate
4. Change to "On a schedule".

The following exception is thrown:

An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll
Additional information: Value of '0001-01-01 00:00:00' is not valid for 'Value'. 'Value' should be between 'MinDate' and 'MaxDate'.
Comments: ** Comment from web user: iainiainiain **

It looks like valid DateTimes, in particular DateTime.MinValue, are not supported by WinForm's DateTimePicker. The latter has its own DateTimePicker.MinimumDateTime.


Viewing all articles
Browse latest Browse all 2206

Latest Images

Trending Articles



Latest Images

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