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


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/> 


Relevant Pages

  • Re: Need to dock to a form in an another application
    ... Herfried K. Wagner [MVP] wrote: ... >>I use VB Express and I need to dock my form closely to an another ... My application is doing calculations based on the database ... > window accordingly. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Message Alert
    ... You or another user can press the F11 key to show the database window ... So the two strSQL lines needs to be changed also: ... assembled strSQL by pressing Ctrl + G, which opens the Immediate ...
    (microsoft.public.access.modulesdaovba)
  • Re: Access/Comcast/Digital Conversion
    ... I did use the Shift-Key trick and that did open the database object window. ... Tony Toews, Microsoft Access MVP ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Belated look at the OSXhints April Fools front page
    ... Why do you prefer to have to go hunting on the Dock for a thing ... There was one widow there before, and there's still a window there ... I really don't feel like I'm hunting. ... it's putting it when it minimises. ...
    (uk.comp.sys.mac)
  • Re: Prompting for password
    ... but requires the use of hooks (therefore I would ... > password in most cases to connect to the other database. ... > The only pre-programmed dialog window for this is the InputBox, ... > Community, please sign in to the Community and mark these posts as ...
    (microsoft.public.access.security)