Click here to Skip to main content
Licence 
First Posted 25 Apr 2002
Views 56,720
Bookmarked 12 times

Verify windows open VB

Verify Windows Open in Visual Basic
2 votes, 50.0%
1

2

3
1 vote, 25.0%
4
1 vote, 25.0%
5
2.10/5 - 8 votes
μ 2.10, σa 3.61 [?]

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

About the Author

Fernando Finelli

Web Developer

Argentina Argentina

Member
Lic. Fernando Finelli

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generaluse this code Pinmembergrangregpgran0:45 1 Jun '03  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web02 | 2.5.120210.1 | Last Updated 26 Apr 2002
Article Copyright 2002 by Fernando Finelli
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid