Click here to Skip to main content
13,300,002 members (69,666 online)
Click here to Skip to main content
Add your own
alternative version


13 bookmarked
Posted 25 Apr 2002

Verify windows open VB

, 25 Apr 2002
Rate this:
Please Sign up or sign in to vote.
Verify Windows Open in Visual Basic
<!-- Add the rest of your HTML here -->


Verify if the windows or form is loaded.

Declaration Function FindWindow
Private Declare Function FindWindow Lib "USER32" Alias "FindWindowA" _
(ByVal lpszClassName As String, ByVal lpszWindow As String) As Long

Call the function:
If FindWindow(vbNullString, Caption) Then
   msgbox "Yes"
   msgbox "No"
End If

You can verify if a window or form is open not only from visual basic, from windows itself For example you can verify if the application CALC.EXE is loaded.

Se puede verificar no solo los formularios abeirtos dentro de Visual Basic, sino tambien cualquier ventana que se encuentre abierta en Windows.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Fernando Finelli
Web Developer
Argentina Argentina
Lic. Fernando Finelli

You may also be interested in...

Comments and Discussions

Generaluse this code Pin
grangregpgran1-Jun-03 0:45
membergrangregpgran1-Jun-03 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 26 Apr 2002
Article Copyright 2002 by Fernando Finelli
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid