Q: How to List the Form Title Names for all Open Apps?

  • Thread starter Thread starter David
  • Start date Start date
D

David

I am attempting to get a list of all open windows forms, dialog box,
etc. title for all active apps. I am searching for a program that
will pop up a dialog box to which I may need to respond with an
action? Can this be done via. the .net classes or do I have to go
back to the APIs?
 
I am attempting to get a list of all open windows forms, dialog box,
etc. title for all active apps. I am searching for a program that
will pop up a dialog box to which I may need to respond with an
action? Can this be done via. the .net classes or do I have to go
back to the APIs?

Use the windows API function EnumWindows for that.
 
Hi,

Dim p As Process

For Each p In Process.GetProcesses

If p.MainWindowTitle.ToString.Length > 0 Then

Trace.WriteLine(p.MainWindowTitle)

End If

Next



Ken
 
Dim p As Process
For Each p In Process.GetProcesses

If p.MainWindowTitle.ToString.Length > 0 Then

Trace.WriteLine(p.MainWindowTitle)

End If

Next


Hey cool I didn't know that it is that easy..
 
Back
Top