genie_of_agrabah
Aug 13th, 2000, 04:18 PM
I am developing an ActiveX control. And for some of the functions that i wish to perform, i need to know the location of the usercontrol form WITH RESPECT TO THE SCREEN. i mean like not w.r.t to its parent or anthing, but i need to know the position of the control w.r.t the screen itself. I realize that there are no Ambient properties that expose this. is there a way around using API?
Actually , let my try to put it more clearly. I have a textbox in a usercontrol. Is there a method or an API through which i can learn the position or coordinates of the textbox with respect to (0,0) of the desktop ? the .top and .left aren't of much use because they return the position with respect to their parent controls. Is there a way around ?
Thanks a lot in advance,
Genie
Actually , let my try to put it more clearly. I have a textbox in a usercontrol. Is there a method or an API through which i can learn the position or coordinates of the textbox with respect to (0,0) of the desktop ? the .top and .left aren't of much use because they return the position with respect to their parent controls. Is there a way around ?
Thanks a lot in advance,
Genie