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 / August 2005

Tip: Looking for answers? Try searching our database.

Relative Position of Control in Scrollable form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
karen.mcdonagh@singularity.co.uk - 02 Aug 2005 14:10 GMT
Hi,
  I am looking to retrieve the relative position of a control to it's
container form.  The problem is that the form itself is scrollable and
when the user has scrolled to the bottom of the form the location of
the control appears to be relative to the top left corner of the
visible part of the form rather than the entire form.

I have tried using PointToClient and setting the left and top
properties of the control but nothing seems to work.

Any ideas on this would be great

Thanks
Karen
Sanjeeva - 03 Aug 2005 07:23 GMT
Override Scroll events on the form and keep calculating the position.

Regards,
Sanjeevakumar Hiremath
http://sharpnet.blogspot.com

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.