编辑许多RichTextBoxes和文本框文本框、编辑、RichTextBoxes

2023-09-06 23:59:01 作者:叼根香烟吻迩

我如何剪切,复制,在一个多文本框,从主菜单糊形成的?

How do i cut,copy,paste from main menu in a multi textboxes form ?

如何菜单知道应用在活动文本?

How does the menu knows to apply on the active textbox ?

推荐答案

在菜单中单击事件,你可以检查 this.ActiveControl 来看看有什么控制当前具有输入焦点。

In the menu click event you can examine this.ActiveControl to see what control currently has input focus.