PC Review


Reply
Thread Tools Rate Thread

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

 
 
Jim Hubbard
Guest
Posts: n/a
 
      10th Oct 2003
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?


 
Reply With Quote
 
 
 
 
Tom Shelton
Guest
Posts: n/a
 
      10th Oct 2003
On 2003-10-10, Jim Hubbard <(E-Mail Removed)> wrote:
> 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.

--
Tom Shelton
MVP [Visual Basic]
 
Reply With Quote
 
Jim Hubbard
Guest
Posts: n/a
 
      10th Oct 2003
So I'm stuck using something like Spyworks from Desaware or rolling my own
dll?

"Tom Shelton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On 2003-10-10, Jim Hubbard <(E-Mail Removed)> wrote:
> > 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.
>
> --
> Tom Shelton
> MVP [Visual Basic]



 
Reply With Quote
 
Tom Shelton
Guest
Posts: n/a
 
      10th Oct 2003
On 2003-10-10, Jim Hubbard <(E-Mail Removed)> wrote:
> 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.

--
Tom Shelton
MVP [Visual Basic]
 
Reply With Quote
 
Jim Hubbard
Guest
Posts: n/a
 
      10th Oct 2003
Thanks for the help!

"Tom Shelton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On 2003-10-10, Jim Hubbard <(E-Mail Removed)> wrote:
> > 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.
>
> --
> Tom Shelton
> MVP [Visual Basic]



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to subclass the Access app window =?Utf-8?B?R2Vyd2luIEJlcmVudHNjaG90?= Microsoft Access Form Coding 5 17th May 2007 09:55 AM
subclass datagrid control Alex Feldman Microsoft Dot NET Compact Framework 17 27th Jul 2005 05:22 PM
How to subclass a treeview control Alexis Microsoft VB .NET 5 1st Mar 2004 08:01 PM
How do I Subclass a richtextbox in another application? Jim Hubbard Microsoft Dot NET 0 5th Aug 2003 06:41 AM
Subclass form window proc Mike Scott Microsoft Dot NET Compact Framework 2 3rd Aug 2003 07:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:04 PM.