MS标准例程(ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.2052/vbcon/html/vbtskdeterminingactivemdichild.htm):
   // Determine the active child form.
   Form activeChild = this.ActiveMdiChild;   // If there is an active child form, find the active control, which
   // in this example should be a RichTextBox.
   if (activeChild != null)
   {  
      try
      {
         RichTextBox theBox = (RichTextBox)activeChild.ActiveControl;
         if (theBox != null)
         {
            // Put the selected text on the Clipboard.
            Clipboard.SetDataObject(theBox.SelectedText);
            
         }
      }
      catch
      {
         MessageBox.Show("You need to select a RichTextBox.");
      }
   }
}