Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Verify windows open VB

0.00/5 (No votes)
25 Apr 2002 1  
Verify Windows Open in Visual Basic

Introduction

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"
Else
   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.

License

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