Assuming by "highlight" you mean you have
selected text:
private bool IsSelection = false;
private void richTextBox1_SelectionChanged(object sender, EventArgs e)
{
IsSelection = richTextBox1.SelectionLength != 0;
button1.Enabled = IsSelection;
button2.Enabled = IsSelection;
}