Answers for "how to disable button until the value is selected c#"

C#
0

how to disable button until the value is selected c#

private void richTextBox1_SelectionChanged(object sender, EventArgs e)
{
    if (richTextBox1.SelectedText != null && !string.IsNullOrEmpty(richTextBox1.SelectedText))
        button2.Enabled = true;
    else
        button2.Enabled = false;
}
Posted by: Guest on April-22-2022

Code answers related to "how to disable button until the value is selected c#"

C# Answers by Framework

Browse Popular Code Answers by Language