I have a Richtextbox and i want to disable the user input, but i dont want to do it through Enabled property.
Code:
private void box_TextChanged(object sender, System.EventArgs e)
{
int currentNumber = MAX - box.Text.Length;
countLabel.Text = "Left characters: " + currentNumber;
if (currentNumber <= 0)
{
System.Console.Beep();
// box.Enabled = false; <-- does not do the trick
}
}

New Topic/Question
Reply




MultiQuote





|