Habanero.Faces.Win.DateTimePickerUtilWinTemp.SetValue C# (CSharp) Method

SetValue() public static method

Sets the date-time value in the specified date-time picker
public static SetValue ( Control dateTimePicker, System.DateTime date ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
date System.DateTime The date to set to
return void
		public static void SetValue(Control dateTimePicker, DateTime date)
		{
			PropertyInfo propInfo =
				dateTimePicker.GetType().GetProperty("Value", BindingFlags.Instance | BindingFlags.Public);
			propInfo.SetValue(dateTimePicker, date, new object[] {});
		}

Same methods

DateTimePickerUtilWinTemp::SetValue ( Control dateTimePicker, object dateValue ) : void
DateTimePickerUtilWinTemp::SetValue ( Control dateTimePicker, string dateString ) : void