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?
 
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.
 

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