G Guest Apr 7, 2005 #1 Short of going char by char, how do I search for a pattern in the text for a textbox Thanks MoonWa
A Alex Passos Apr 7, 2005 #3 Hi MoonWa You can quick do a search using String.IndexOf on the Text attribute to find if a string appears within your text, then if you need to highlight it you can use the TextBox.SelectionStart property. Here is a sample: http://msdn.microsoft.com/library/d...sformstextboxbaseclassselectionstarttopic.asp Alex
Hi MoonWa You can quick do a search using String.IndexOf on the Text attribute to find if a string appears within your text, then if you need to highlight it you can use the TextBox.SelectionStart property. Here is a sample: http://msdn.microsoft.com/library/d...sformstextboxbaseclassselectionstarttopic.asp Alex