2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
In DateTimePickerAdv, the selected value can be retrieved by following below steps.
The following code example demonstrates the same. C# //Occurs on user makes the date selection. this.dateTimePickerAdv1.Calendar.DateSelected += Calendar_DateSelected; void Calendar_DateSelected(object sender, EventArgs e) { label1.Text = this.dateTimePickerAdv1.Value.ToString(); }
VB 'Occurs on user makes the date selection. AddHandler Me.dateTimePickerAdv1.Calendar.DateSelected, AddressOf Calendar_DateSelected Private Sub Calendar_DateSelected(ByVal sender As Object, ByVal e As EventArgs) label1.Text = Me.dateTimePickerAdv1.Value.ToString() End Sub
Note: The DateSelected event will be raised when selecting the date using the mouse click.
Figure 1: The selected value of the DateTimePickerAdv. Sample Links: |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.