Declare your DateTimePicker and try.
DateTimePicker myPicker = new DateTimePicker;
myPicker.Value = DateTime.Now;
As someone pointed out, put your code in front of InitializeComponent() , since it is in the part that your DateTimePicker initializes.
1 - Remove Management
2 - Re-add it.
3 - See where you put your code.
This should work after this, since you are doing it right on part of the code.
source share