Returning focus to active application.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AaronL
    New Member
    • Jan 2007
    • 99

    Returning focus to active application.

    Hello,

    I have an app that runs in the task bar, but I want to make it so that when a use clicks on the icon in the task bar, the application that they were working on doesn't lose focus.

    Is there a way I can prevent my application from getting focus, if not, is there a way to get the current active application that is in focus, and then set focus back to that application after the click to the task bar??

    Thank you
  • vb5prgrmr
    Recognized Expert Contributor
    • Oct 2009
    • 305

    #2
    Perhaps GetForeGroundWi ndow and SetWindowPos API's might help...



    Good Luck

    Comment

    Working...