开发者

Editing Many RichTextBoxes and TextBoxes

开发者 https://www.devze.com 2022-12-31 18:53 出处:网络
How do i cut,copy,paste from main menu in a multi textboxes form ? How does the menu knows to apply on th开发者_如何学Ce active textbox ?Please see this article here on Codeproject that does the job

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

How does the menu knows to apply on th开发者_如何学Ce active textbox ?


Please see this article here on Codeproject that does the job in synchronizing each text box's "standard" edit menu such as Copy, Cut, Paste, Undo, Select All. Of course, the code originally targets the .NET 1.1, but it can be easily recompiled to target the newer frameworks as well.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消