[VB.NET] How to get the current focused app?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • B3nNa
    New Member
    • Feb 2008
    • 1

    #1

    [VB.NET] How to get the current focused app?

    Hi.
    I'm new in this wonderful community and I want to make a question.

    I'm developing a VB.NET form applicantion wich has to activate a function when a determinated form is active. The only problem is that the form isn't in this application, but in another
    for example:

    Code:
    if(namespace.class.IsProcessFocused("skype.exe") = True) then
    .....
    .....
    End If
    Thanks in advance

    ps:I'm sorry for my bad english but i'm from Italy and sleeping in the classroom didn't help me to learn english..
Working...