Link to home
Start Free TrialLog in
Avatar of msjammu
msjammuFlag for United States of America

asked on

Get Coordinates of a Window

HI,
My application's MDICHILD child window is too large. I have scrolled in the middle. Obviously, half of child window is above the visible screen and half is below the visible screen. How can I get the coordinates of the window part that is currently visible through the mdi window, if this also 0,0 (relative) how do I calculate the actual points relative to whole window.

Regards,
msjammu
SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of raj3060
Jammu.
 you can use JavaScript for this purpose. There are several javascript codes out there to get the coordinate.
--Raj
Avatar of msjammu

ASKER

raj:
Javascript in VB?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of msjammu

ASKER

Thanks for the nice diagram
Actually I want ABHI, so each time I resize the child programatically I want it to be placed at the same place where that was before resize. My requirement are due to the MDI scrollbar problem here:

https://www.experts-exchange.com/questions/21118126/Scrolling-And-Tabbing-Problem.html

I am actually trying to figger out a solution for myself for the above problem. you may help !

Let me try your solution

msjammu