Re: Need to dock to a form in an another application
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 01/03/05
- Next message: Herfried K. Wagner [MVP]: "Re: How to diagnose why an Add-in in VS 2005 fails to load"
- Previous message: Herfried K. Wagner [MVP]: "Re: 0xC0000005: Access violation reading location"
- In reply to: Erik Edlund: "Need to dock to a form in an another application"
- Next in thread: Erik Edlund: "Re: Need to dock to a form in an another application"
- Reply: Erik Edlund: "Re: Need to dock to a form in an another application"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 3 Jan 2005 21:21:28 +0100
"Erik Edlund" <erik@norrsken.nu> schrieb:
>I use VB Express and I need to dock my form closely to an another
>application's form. I don't have access to that applications code, only to
>it's database. My application is doing calculations based on the database
>and I need to make the user visually aware of which data they are
>manipulating. Is it possible to iterate through the visible forms, identify
>them and return their size and location?
There is no managed solution to do that. You'll have to use p/invoke
('Declare'/'DllImportAttribute') the 'FindWindow'/'GetWindowRect' functions
in order to get the location/size of the other window and then move your
window accordingly.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
- Next message: Herfried K. Wagner [MVP]: "Re: How to diagnose why an Add-in in VS 2005 fails to load"
- Previous message: Herfried K. Wagner [MVP]: "Re: 0xC0000005: Access violation reading location"
- In reply to: Erik Edlund: "Need to dock to a form in an another application"
- Next in thread: Erik Edlund: "Re: Need to dock to a form in an another application"
- Reply: Erik Edlund: "Re: Need to dock to a form in an another application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|