How do you subclass a window or control in another application?

  • Thread starter Thread starter Jim Hubbard
  • Start date Start date
J

Jim Hubbard

The other application is not necc a .Net application. May have been written
in C++ or whatever.

I have plenty of examples showing subclassing of a form within a vb.net app,
but nothing showing subclassing of a form outside of my vb.net app. Is it
the same? Can the .net .nativewindows class handle apps not written in
..Net?
 
The other application is not necc a .Net application. May have been written
in C++ or whatever.

I have plenty of examples showing subclassing of a form within a vb.net app,
but nothing showing subclassing of a form outside of my vb.net app. Is it
the same? Can the .net .nativewindows class handle apps not written in
.Net?

You can't do process process hooking in .NET. Your going to need to
write a good old fashioned dll to do it. You'll want to take a look at
SetWindowsHookEx.
 
So I'm stuck using something like Spyworks from Desaware or rolling my own
dll?

Pretty much. If your doing cross process work, then it has to be in a
standard dll.
 
Back
Top