How to move picturebox using WinForms in C#

1 Answer

0 votes
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int x = 300;
            int y = 400;

            pictureBox1.Location = new Point(x, y);
        }
    }
}




/*
run:
 

  
*/

 



answered Jan 26, 2024 by avibootz
...