Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: C# list of unique values with group and counts 
Csharp :: windows form button border color 
Csharp :: enable asnotracking in asp.net core at global level 
Csharp :: how to download things c# 
Csharp :: Wait some seconds without blocking UI execution 
Csharp :: replace bar c# 
Csharp :: number to string ef example c# 
Csharp :: c# user name session 
Csharp :: Library dll unless netloaded by AutoCAD 
Csharp :: unity matchinfo 
Csharp :: switch case c# enum tostring 
Csharp :: godot c# signal 
Csharp :: character stay in ground unity 3d 
Csharp :: ef core identity get user with relationships 
Csharp :: IdentityServer vs JWT vs OAuth? 
Csharp :: blazor OnInitializedAsync Unhandled exception rendering component: Cannot wait on monitors on this runtime. 
Csharp :: resharper render pages folder asp.net core 
Csharp :: qcombobox delegate text filter 
Csharp :: unity cone hit test spotlight lits object light on object test 
Csharp :: c# check if value in dictionary are unique 
Csharp :: C# create delegate type at runtime 
Csharp :: grass download for unityh 
Csharp :: c# plus one 
Csharp :: secret 
Csharp :: remove tag anchor and inside tag from html raw text c# 
Csharp :: how to set window position 
Csharp :: prime number generator 
Csharp :: c# windows service .net core 
Csharp :: unity new input system get button down 
Csharp :: devexpress objectspace to session 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =