به شما پیشنهاد میکنم یه CustomTextBox بصورت زیر تعریف کنی که چهار Property از نوع TextBox داشته باشه
using System.Windows.Forms;
namespace textConn
{
class CustomTextBox:TextBox
{
public TextBox TxtBoxUp { get; set; }
public TextBox TxtBoxDwon { get; set; }
public TextBox TxtBoxLeft { get; set; }
public TextBox TxtBoxRight { get; set; }
protected override void OnTextChanged(EventArgs e)
{
if (TxtBoxUp != null) TxtBoxUp.Text = Text;
if (TxtBoxDwon != null) TxtBoxDwon.Text = Text;
if (TxtBoxLeft != null) TxtBoxLeft.Text = Text;
if (TxtBoxRight != null) TxtBoxRight.Text = Text;
base.OnTextChanged(e);
}
}
}
وکافیست در فایل Designer فرم نوع TextBox ها رو به نوع CustomTextBox تبدیل کنی .بعد از کامپایل هر TextBox چهار Property از نوع TextBox در پنجره Propertyها اضافه میشه که میتونی به تکست بکس های اطراف آن انتصاب دهی