private void CmdPositionRel_Click(object sender, EventArgs e)
{
CmdTest.Location = new Point(
CmdTest.Location.X = + 20, CmdTest.Location.Y);
What I am trying to achive is that by pressing the button CmdPosition the button CmdTest goes 20 pixels in the positive direction of X.
According to the bock I am learning from this code is right...
Problem : CS1612 Cannot modify the return value of control.Location because it is not a variable
In all the other threads the answer was to add "new Point". I have that but still the problem appears.
Sorry I am a complete beginner, in programming and on StackOverflow. Hope you can help me. Thanks