How to locate the x,y coordinates of a text box? - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » How to locate the x,y coordinates of a text box? How to locate the x,y coordinates of a text box? Last post 08-17-2009 08:53 AM by dividebyzero. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 08-14-2009 06:15 AM dividebyzero Joined on 08-14-2009 Posts 2 How to locate the x,y coordinates of a text box? Reply Contact I want to know the x,y coordinates (in pixel) of where my textbox is located. that way I can have this data: {name, x, y, width, height} How can I do this? Where is the x y coordinate data located? Thanks for any help! Filed under: textbox, coordinate, pixel 08-17-2009 08:28 AM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: How to locate the x,y coordinates of a text box? Mark as Not AnswerMark as Answer... Reply Contact Hi -- I don't know that there is a way to do this in InfoPath. We can't access controls in the code behind, only the data that is displayed in controls bound to data fields. I don't believe InfoPath exposes this information in any of its property windows, so that's out. The width and height you can find in the properties for a control, but I don't know of a way to get dynamic information about those things (like something that could update itself if those properties change). Hilary Stoupa 08-17-2009 08:53 AM In reply to dividebyzero Joined on 08-14-2009 Posts 2 Re: How to locate the x,y coordinates of a text box? Mark as Not AnswerMark as Answer... Reply Contact Thanks for your reply.If there is no solution I'll work around the problem by guessing the x,y coordinate using the the "save as source" option and logically understanding where they could be. Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I want to know the x,y coordinates (in pixel) of where my textbox is located.
that way I can have this data: {name, x, y, width, height}
How can I do this? Where is the x y coordinate data located?
Thanks for any help!
Hi -- I don't know that there is a way to do this in InfoPath. We can't access controls in the code behind, only the data that is displayed in controls bound to data fields. I don't believe InfoPath exposes this information in any of its property windows, so that's out. The width and height you can find in the properties for a control, but I don't know of a way to get dynamic information about those things (like something that could update itself if those properties change).
Thanks for your reply.
If there is no solution I'll work around the problem by guessing the x,y coordinate using the the "save as source" option and logically understanding where they could be.