The Location
property has type Point
which is a struct.
Instead of trying to modify the existing Point
, try assigning a new Point
object:
this.balancePanel.Location = new Point(
this.optionsPanel.Location.X,
this.balancePanel.Location.Y
);
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?
- C# Get a control’s position on a form
- 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?
- Winforms TableLayoutPanel adding rows programmatically
- Why is the control inaccessible due to its protection level?
- Drop shadow in Winforms Controls?
- How do I make custom controls in C#? [closed]
- Getting The Location Of A Control Relative To The Entire Screen?
- How to double buffer .NET controls on a form?
- How can I disable a tab inside a TabControl?
- What is the “right” way to bring a Windows Forms Application to the foreground?
- How to create an Explorer-like folder browser control?
- How to change the color of winform DataGridview header?
- Run multiple UI Threads
- Topmost form, clicking “through” possible?
- Clipboard Copying objects to and from
- Rotate Point around pivot Point repeatedly