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

Need to loop thru all rad controls to determine which has focus

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Warren
Top achievements
Rank 2
Warren asked on 24 Jan 2015, 11:05 PM
I need a way of looping thru all the controls on a window form to determine which one has focus then return that control to the calling subroutine.  Basically I have a sub routine that calls a function which returns the control on the form that has focus.  Because Rad Controls have child controls that may actually have the focus what is the best way of doing this?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Jan 2015, 08:20 AM
Hi Warren,

Thank you for writing.

Here is a thread which I have found regarding your question: http://stackoverflow.com/questions/435433/what-is-the-preferred-way-to-find-focused-control-in-winforms-app.

You can give it a try and let me know how it works for you.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Warren
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or