Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Titles of windows

Status
Not open for further replies.

Diogo

Technical User
Mar 22, 2001
143
PT
Hi.

Is there any way, that i could know the title of the windows that are opened.

ex. "Visual Basic(Microsoft):Version 5 & 6 Forum - Tek-Tips

Thanks any way.

Diogo Reis
 
Diogo,
this may point you in the right direction:

Dim frmTempForm As Form
For Each frmTempForm In Forms
MsgBox frmTempForm.Caption
Next

pmrankine
 
That gives me the name of the report open of your project.

But what i want is the title of the word, internet explorer, the other applications of windows.

Thanks any way.

Diogo Reis
 
Then you will want to look at the API functions:

EnumWindows
EnumChildWindows

Robert
 
Check out the solution I used under the thread "# of Instances of an Application Opened"
thread222-430467

I use it to make sure a workstation cannot open more than 4 instances of an application, but in it I am checking the title of all open windows.

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top