FindWindow Question !

  • Thread starter Thread starter fullisnull
  • Start date Start date
F

fullisnull

Dim hwnd As IntPtr = FindWindow(Nothing, "LinkMan")
why hwnd is always 0 when I open LinkMan_ window?
 
For me, the documentation says that the window text parameter may be
null, but it doesn't say that the class name can be. You may need to
include a class name. If you have eMbedded Visual Tools (3.0 if you're
developing for 2002, 4.0 for 2003) you can use the Remote Spy++ tool
to view all of the windows open on your device (Both their class name
and their caption). I develop with C# and all of my windows are of
class name #NETCF_AGL_BASE_. Try changing your statement to

Dim hwnd as IntPtr = FindWindow("#NETCF_AGL_BASE_", "LinkMan")

Good luck,
Tristan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top