Answers for "c# search richtextbox"

C#
0

c# Search specified string inside textbox

int pos = textbox1.Text.IndexOf("YYMM");
if(pos != -1)
{ 
    textbox1.SelectionStart = pos;
    textbox1.SelectionLength = 4;
    // MessageBox("Error");
}
Posted by: Guest on December-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language