Hello
Add this code to TextChanged eventHandler:
private string previousText;
private void TextBox_TextChanged(object sender, EventArgs e)
{
if (!this.TextBox.Enabled)
{
this.TextBox.Text = previousText;
return;
}
previousText = this.TextBox.Text;
}
Then the textBox likes enabled via code too!