This is a migrated thread and some comments may be shown as answers.

DateTimePicker Focus

1 Answer 223 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 14 Aug 2020, 06:25 PM

I have a windows form in my application which uses the datetime picker.  I have noticed that there is no "Focus" property on the control.  I cannot do the following: 

fromDatePicker.Focus() and force my my user to interact with that control first, other Telerik controls on the form allow me to do this.  

I am using the latest version of the WinForm controls and VS 2019

What am I missing?

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 Aug 2020, 04:40 AM
Hello, Sam,

Similar to the all of the controls in the Telerik UI for WinForms suite, RadDateTimePicker also offers Focus method: 
        private void radButton1_Click(object sender, EventArgs e)
        {
            this.radDateTimePicker1.Focus();
        }

I have attached my sample project for your reference. Please give it a try and see how it works on your end.

In case you are still experiencing any further difficulties, feel free to modify it in a way to reproduce the experienced issue and get back to me with it so I can investigate the precise case. Thank you in advance. 
 
I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Tags
DateTimePicker
Asked by
Sam
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or