Adding Cut/Copy/paste functionality to my App?

  • Thread starter Thread starter Amos
  • Start date Start date
A

Amos

How can I add Cut/Copy/paste functionality to my MDI Windows app? I found an
article that explains the Clipboard.SetDataObject method but it takes a
specific object as parameter. Since I may have several child forms open in
my MDI, how can I tell SetDataObject to copy the text in the object that has
been selected?

Thanks.
 
Amos:

If I understand you correctly, just pass in the ActiveMDIChild (or whatever
object on it you want)
 
But if the ActiveMDIChild has several textboxes, how do I know which textbox
the user wrote text in and wants to copy?
From my MDI form, if my active child form has three textboxes and the user
typed text on all three of them, how do I know which of those textboxes were
highlighted (if any)?

Amos
 
Amos said:
But if the ActiveMDIChild has several textboxes, how do I know which textbox
the user wrote text in and wants to copy?
From my MDI form, if my active child form has three textboxes and the user
typed text on all three of them, how do I know which of those textboxes were
highlighted (if any)?

Amos

The one that's active.

Form.ActiveMdiChild.ActiveControl

Erik
 
Hi Amos,

Do you still have any concern?

Please feel free to let me know, I will help you. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top