Hi I am using m_richEditCtrl.SetSel(s,e); sel = m_richEditCtrl.GetSelText(); to get the text of a selected item in a RichEdit Control I having problems detecting if the selected text contains a line break or carriage return can anyone help thanks Simon