How to Display DateTimePickeradv Control Programmatically in Windows Forms DateTimePickerAdv(Classic)
3 Sep 2020 / 1 minute to read
We can display the Calendar programmatically on a button click. The DisplayCalendar method should be called from the click event handler in order to show the control.
private void button1_Click(object sender, System.EventArgs e)
{
// Shows the calendar.
this.dateTimePickerAdv1.DisplayCalendar();
}
Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
' Shows the calendar.
Me.dateTimePickerAdv1.DisplayCalendar()
End Sub
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page