I want to select all the text that is with in text box.
I've tried this using the code below:
textBoxResults.SelectionStart = 0;
textBoxResults.SelectionLength = textBoxResults.Text.Length;
Source: I got this code from here http://msdn.microsoft.com/en-us/library/vstudio/hk09zy8f(v=vs.100).aspx but for some reason it doesn't seem to work - meaning, no text gets selected.
selectedText
if you writevar selectedText = textBoxResults.SelectedText;
? Are you modifying the text property after the code above? – Sociability