Version

Adding Selected Dates to WinTree

With WinDateTimeEditor™, you can choose a date which can then be used as a text string. When the button is selected a drop-down calendar similar to the one used in Outlook® displays. The user can click on any date in the calendar. When a date is clicked, the WinDateTimeEditor’s Value property is returned.

The following example code uses the WinDateTimeEditor’s ValueChanged event to add the newly selected date and time as a Node in the WinTree™.

In Visual Basic:

Private Sub UltraDateTimeEditor1_ValueChanged(ByVal sender As Object, _
  ByVal e As System.EventArgs) Handles UltraDateTimeEditor1.ValueChanged
	Me.UltraTree1.Nodes.Add(Me.UltraDateTimeEditor1.Value.ToString())
End Sub

In C#:

private void ultraDateTimeEditor1_ValueChanged(object sender, System.EventArgs e)
{
	this.ultraTree1.Nodes.Add(this.ultraDateTimeEditor1.Value.ToString());
}

When you select a new date from the drop-down calendar, the selected date is added to the WinTree.

shows windatetimeeditor values creating nodes in the wintree