Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Findwindow API problem ?
Message
De
10/11/1998 10:12:39
Jody Cairns
OAO Technology Solutions
Moncton, Nouveau-Brunswick, Canada
 
 
À
10/11/1998 09:22:22
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nouvelle-Écosse, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00155549
Message ID:
00156127
Vues:
44
>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
Fil
Voir

Click here to load this message in the networking platform