Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# Search specified string inside textbox

int pos = textbox1.Text.IndexOf("YYMM");
if(pos != -1)
{ 
    textbox1.SelectionStart = pos;
    textbox1.SelectionLength = 4;
    // MessageBox("Error");
} 
Comment

PREVIOUS NEXT
Code Example
Csharp :: Get the current culture in a controller asp.net-core 6 
Csharp :: convert array to datatable c# 
Csharp :: unity how to get data of play session time in a text file? 
Csharp :: universities in greece 
Csharp :: how to get the size of an array in c# 
Csharp :: c# string split by length 
Csharp :: c# reflection 
Csharp :: unity c# bool to int conversion 
Csharp :: how to not overwrite a text file in c# 
Csharp :: string stringbuilder c# 
Csharp :: unity c# rate game 
Csharp :: insert variables into a string C# 
Csharp :: c sharp or operator in if statement 
Csharp :: millie bobby brown age 
Csharp :: get selected rows gridcontrol devexpress 
Csharp :: inverse kinematics not working unity 
Csharp :: block nulltarge tpl dataflow 
Csharp :: convert foreach to linq c# 
Html :: open page with html 
Html :: degree symbol html 
Html :: rs logo html 
Html :: textarea placeholder css 
Html :: whatsapp html code for website 
Html :: where to use .target command in html 
Html :: lorem ipsum 
Html :: laravel blade remove all html tags 
Html :: meta redirect header 
Html :: make text vertical align middle in table bootstrap 
Html :: disable autoplay in html iframe 
Html :: html favicon tag 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =