I usually combine PointToScreen
and PointToClient
:
Point locationOnForm = control.FindForm().PointToClient(
control.Parent.PointToScreen(control.Location));
More Related Contents:
- How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?
- Get a Windows Forms control by name in C#
- Best way to access a control on another form in Windows Forms?
- How to access a form control for another form?
- Word wrap for a label in Windows Forms
- Find a control in Windows Forms by name
- How to access Winform textbox control from another class?
- Pass click event of child control to the parent control
- Fake-scrolling containers with very many controls
- Is it appropriate to extend Control to provide consistently safe Invoke/BeginInvoke functionality?
- What is the difference between User Control, Custom Control and Component?
- Forcing a checkbox bound to a DataSource to update when it has not been viewed yet
- Catch Textbox Scroll Event?
- Resize Controls with Form Resize
- Why controls do not want to get removed?
- Why is the control inaccessible due to its protection level?
- Drop shadow in Winforms Controls?
- How do I make custom controls in C#? [closed]
- Change the location of an object programmatically
- Getting The Location Of A Control Relative To The Entire Screen?
- Question about terminating a thread cleanly in .NET
- Call a method from another form
- How do I capture the mouse move event
- Invoke NotifyIcon’s Context Menu
- How do you resize a form to fit its content automatically?
- WinForms DataGridView – databind to an object with a list property (variable number of columns)
- Prevent from displaying of Windows Security window
- Constrain aspect ratio in WindowsForms DataVisualization Chart
- How do you change the text in the Titlebar in Windows Forms?
- Winforms: SuspendLayout/ResumeLayout is not enough?