473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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?
Nov 20 '05 #1
4 2092
On 2003-10-10, Jim Hubbard <1@2.com> 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]
Nov 20 '05 #2
So I'm stuck using something like Spyworks from Desaware or rolling my own
dll?

"Tom Shelton" <to*@mtogden.com> wrote in message
news:Oh**************@TK2MSFTNGP11.phx.gbl...
On 2003-10-10, Jim Hubbard <1@2.com> 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]

Nov 20 '05 #3
On 2003-10-10, Jim Hubbard <1@2.com> 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]
Nov 20 '05 #4
Thanks for the help!

"Tom Shelton" <to*@mtogden.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
On 2003-10-10, Jim Hubbard <1@2.com> 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]

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
1
by: Barry Svee | last post by:
I'm struggling with the JavaScript blur event. I have an activex control that I need to interact with when a window loses focus, namely to instruct it to give up control of a barcode scanner so...
4
by: google | last post by:
Hi there, I've searched high and low for this, but it seems most people are looking to establish (and control) the relationship between a parent browser window and it's associated child window...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
5
by: Alexis | last post by:
How can I subclass a treeview control to add columns to it? Thanks, Alexis
2
by: bryan | last post by:
Hi all, I am developing a web app in .net 2.0. I have a few DropDownLists that are used on multiple web forms, these show shop locations and employees. Each DDL is placed inside a...
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
5
by: gregarican | last post by:
There is a C# CTI app I'm working on using Visual Studio 2005 at revision level 8.0.50727-7600. I need a couple of Windows Form Button controls to emulate line buttons on a telephone. So I went to...
3
by: Joel Hedlund | last post by:
Hi! I've raised this issue on #pygtk and #gtk+ but with no luck. I haven't been able to solve this even with aid of google, the pygtk reference and the gtk C source, so pretty please help? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.