void PictureBox1.Paint(object sender, PaintEventArgs e){ int x = int.Parse(textbox1.Text); int y = int.Parse(textbox2.Text); Graphics g = e.Graphics; g.FillEllipse(Brushes.Red, new Rectangle(x - 2, y - 2, 4, 4));}