private void rtbTextBox_Click(object sender, EventArgs e) { if (m_stStatusText != null) { Point ptCursorLoc = rtbTextBox.PointToClient(Cursor.Position); int iCharIndex = rtbTextBox.GetCharIndexFromPosition(ptCursorLoc); StatusTextElement stElement = m_stStatusText.FindWord(iCharIndex); if ((stElement != null) && (TextElementClicked != null)) { TextElementClicked(this, stElement); } } }