RichTextBox rtb = new RichTextBox(); rtb.Focused;//指示是否有输入焦点 TextBox tb = new TextBox(); tb.Focused;//指示是否有输入焦点