How to access a certain button to change the value of a certain next field (in a dynamically created controls) : #i need to use a button to make a number of textboxes with related buttons each button will add 1 to the textbox (that i want to be related to it HOW?)#
##i have a windows form with button1 and three panels##

  

        using System;
        using System.Drawing;
        using System.Linq;
        using System.Windows.Forms;

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

            if (panel3.Controls != null)
            {
                var btn = panel3.Controls.Find("_B", true).First();
                btn.Click += new EventHandler(Btn_Click);
            }

        }
        int a = 0;
        int counter=0;
        private void button1_Click(object sender, EventArgs e)
        {
            counter++;
            Button btn = new Button();
            btn.Location = new Point(0, 100);
            btn.Text = "ADD";
            btn.Name ="_B";
            btn.Dock = DockStyle.Left;

            TextBox txt = new TextBox();
            txt.Name = "_T";
            txt.Location = new Point(500, 100);
            txt.Dock = DockStyle.Left;
            txt.Text = a.ToString();
            
            panel3.Controls.Add(txt);
            panel3.Controls.Add(btn);

            foreach (var item in panel3.Controls.Find("_B", true))
            {
                item.Text = "ass";
            }
        }
        
   //     btn.Click += new EventHandler(Btn_Click);
        private void Btn_Click(object sender, EventArgs e)
        {
      //    MessageBox.Show(sender.ToString());
            // throw new NotImplementedException();
            
            var txtbx= panel3.Controls.Find("_T", true).First();
            var btnbx = panel3.Controls.Find("_B", true).First();
            a++;
            //      find[1].Dispose();
            txtbx.Text = a.ToString();
        }
    }
}
