Get the active application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nasser

    Get the active application

    Folks

    Does anyone know how to find the active application (i.e.
    the application which is receiving the key and mouse
    input) at run time using C# or VB?

    Regards
    Nasser.
  • Jinlin

    #2
    Re: Get the active application

    I am doing the same thing in C# but I couldn't find a .NET function for it.

    I am using the API call instead.
    [DllImport("user 32.dll")] private static extern IntPtr
    GetForegroundWi ndow();

    Jinlin

    "Nasser" <anonymous@disc ussions.microso ft.com> wrote in message
    news:a06a01c3b7 ac$7b320740$a60 1280a@phx.gbl.. .[color=blue]
    > Folks
    >
    > Does anyone know how to find the active application (i.e.
    > the application which is receiving the key and mouse
    > input) at run time using C# or VB?
    >
    > Regards
    > Nasser.[/color]


    Comment

    Working...