Information générale
Catégorie:
Contrôles ActiveX
>I tried changing the declaration to ByRef rather than ByVall .. still no luck .. Im trying to check for another program running. Could you give me an example of code that works ? Much appreciated ...
Try this:
Public Declare Function FindWindow Lib "user32" Alias _
"FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName _
As String) As Long
Dim lHandle As Long
Dim sTitle As String
sTitle = "Universal Thread - Microsoft Internet Explorer"
lHandle = FindWindow(vbNullString, sTitle)
lHandle will equal zero if the window is not found.
sTitle is the exact title of the window you are searching for.
What exactly are you trying to use it for? What window do you want to find?
best
jody
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement