Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

Measuring the offset of a sub-control within a form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil Jones - 28 Oct 2004 22:03 GMT
Is there a consitent/easy way to get the X:Y pixel offset of a contron
within it's containing Form (irrespective of how deeply it is nested within
a control hierarchy)?

I've written a little routine that runs up the hierarchy, but I thought this
must be such an obvious thing that there might be a framework method for
doing this (that perhaps takes into accounts some problems I might not be
thinking about).

Many thanks everyone.

Signature

===
Phil
(Auckland | Aotearoa)

Carl Mercier - 28 Oct 2004 22:13 GMT
As far as I know... no.  Writing your own function to do this would be
easy enough, though.

> Is there a consitent/easy way to get the X:Y pixel offset of a contron
> within it's containing Form (irrespective of how deeply it is nested within
[quoted text clipped - 6 lines]
>
> Many thanks everyone.
Phil Jones - 29 Oct 2004 06:01 GMT
Cheer - good to know

Thanks Carl.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.