Change button position | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Change button position

Hi, there is a PictureBox, you need it every time you click on it Top added +40, tried to do, but it turned out only at the first shot, and it is necessary at each.

31st Jan 2020, 6:22 PM
olmtvck
olmtvck - avatar
1 Answer
0
Unfortunately you do not share your code. We can't predict what is wrong. I have managed to write code, that meets your requirements. private void button1_Click(object sender, EventArgs e) { button1.Top = button1.Top + 40; } With this code my button moves every time I click it. Keep asking (please put more detail in), keep coding
1st Feb 2020, 8:32 PM
sneeze
sneeze - avatar