Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# Search specified string inside textbox

int pos = textbox1.Text.IndexOf("YYMM");
if(pos != -1)
{ 
    textbox1.SelectionStart = pos;
    textbox1.SelectionLength = 4;
    // MessageBox("Error");
} 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Search #string #textbox
ADD COMMENT
Topic
Name
9+4 =