Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implementing Cut, Copy, Paste, etc
Message
General information
Forum:
ASP.NET
Category:
Menus
Title:
Implementing Cut, Copy, Paste, etc
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01204698
Message ID:
01204698
Views:
52
I'm trying to implement cut, copy, paste, delete, and select all from an MDI menu. I've done this for all but the Delete menu:
if(this.ActiveMdiChild.ActiveControl is TextBox || this.ActiveMdiChild.ActiveControl is RichTextBox)
{
     if(((TextBoxBase)this.ActiveMdiChild.ActiveControl).SelectionLength > 0)
     {
          ((TextBoxBase)this.ActiveMdiChild.ActiveControl).Paste();
     }
}
Is there a better way? And second, how would I implement the Delete?

TIA

Richard
State of Florida, DCF
Reply
Map
View

Click here to load this message in the networking platform