How to read the title of the active window in VB.NET

  • Thread starter Thread starter Hoi Kay Li
  • Start date Start date
H

Hoi Kay Li

Guest
Hi I was wondering how I could read the title of an open window.

For example, if I had Microsoft Word as my active window, I want the program to read its window title (i.e. Very important doc - Microsoft Word)

I've seen the use of GetForegroundWindow() being referenced but it doesn't seem to link anywhere in VS2019 with .NET 4.7.2

Continue reading...
 
Back
Top