Posted 19 Jul 2017 Link to this post
I have not found how to select the entire content of a DateTimePicker when it get's focus (OnEnter). I have done this with a MaskedEditBox, but can't seem to get it to work with this control. Any help would be greatly appreciated.
Thanks
Posted 20 Jul 2017 Link to this post
public
Form1()
{
InitializeComponent();
this
.radDateTimePicker1.DateTimePickerElement.TextBoxElement.TextBoxItem.MouseUp += TextBoxItem_MouseUp;
}
private
void
TextBoxItem_MouseUp(
object
sender, MouseEventArgs e)
radDateTimePicker1.DateTimePickerElement.TextBoxElement.TextBoxItem.SelectAll();
RadDateTimePicker1_GotFocus(
sender, EventArgs e)
.radDateTimePicker1.DateTimePickerElement.TextBoxElement.TextBoxItem.SelectAll();