Back in November of 2018, I shared a brief explanation to obtain Winform control information by using a tool packaged in Visual Studio called Spy++. This tool is included in Visual Studio 2019 as well. To find it, you’ll need to modify your Visual Studio 2019 installation by going to the menu and clicking on Tools > Modify. The Visual Studio Installer should appear. Browse to the Individual Components tab and search for C++ core features.

Visual Studio 2019 Installer

Check the C++ core features option and choose Modify. This will install the C++ Core Features as well as the spyxx.exe and spyxx_amd64.exe files at C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools.