Hi 1. catch your enterbutton in BOOL CYourDlg::OnApply() { // do something with m_RichText; return FALSE; } also your can use OnChar(...) fiunction 2. a sample m_RichText.SetSel(0,-1); CHARFORMAT cf; cf.dwMask = CFM_SIZE|CFM_COLOR|CFM_UNDERLINE; cf.dwEffects = CFE_UNDERLINE; cf.crTextColor = RGB( 0, 0,255); cf.yHeight = 120; m_RichText.SetWordCharFormat(cf); 3. the simplest way try { ... m_RichText.LoadFile(..); } catch(...) { } Mike.