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

2 posts, 0 answers
  1. Warren
    Warren avatar
    24 posts
    Member since:
    May 2008

    Posted 24 Jan 2015 Link to this post

    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?
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 26 Jan 2015 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top