So I've got a button that creates checkboxes, and I'm trying to make another button that moves them up and down.
//Sets the location. chkBox.Location = new Point(15, (108 + (intVariable * 20)
What I'm looking for is the command I need to put in to find their current locations, because I'm relatively new to C# and I don't know every command off the bat. This is what I'm trying to do, but of course, with some random command over "<current location>":
//Move it up. chkBox.Location = new Point(<currentlocation>, (<current location> – 108));
//Move it down. chkBox.Location = new Point(<currentlocation>, (<current location> + 108));
by Gate4043 via /r/csharp