Need to dock to a form in an another application

  • Thread starter Thread starter Erik Edlund
  • Start date Start date
E

Erik Edlund

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?

Thanks in advance for any answer / Erik Edlund
 
Erik Edlund said:
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.
 
Herfried said:
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.
Thanks for the answer, but that's a real challenge
for a newbie in API. / Erik
 

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