private static void scrollIntoViewAndHighlight(string text, Panel eclListing, System.Windows.Forms.Panel co, System.Windows.Forms.TextBox tb, int textStart) { eclListing.ScrollControlIntoView(co); tb.Select(textStart, text.Length); tb.HideSelection = false; return; }