Follow-up to this...
I found some code in the on-line help. Hopefully this is the way it's supposed to be done. Basically, the COPY is...
Form activeChild = this.ActiveMdiChild;
if (activeChild != null)
{
try
{
TextBox theBox = (TextBox)activeChild.ActiveControl;
if (theBox != null)
{
Clipboard.SetDataObject(theBox.SelectedText);
}
}
catch
{
MessageBox.Show("You need to select a TextBox.");
And then the PASTE does...
Form activeChild = this.ActiveMdiChild;
if (activeChild != null)
{
try
{
TextBox theBox = (TextBox)activeChild.ActiveControl;
if (theBox != null)
{
IDataObject data = Clipboard.GetDataObject();
if (data.GetDataPresent(DataFormats.Text))
{
theBox.SelectedText = data.GetData(DataFormats.Text).ToString();
Seems to work fine, thought I need to modify it to be able to copy/paste into rich textbox fields as well.