By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,122 Members | 2,044 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,122 IT Pros & Developers. It's quick & easy.

Adding Cut/Copy/paste functionality to my App?

P: n/a
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.
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Amos:

If I understand you correctly, just pass in the ActiveMDIChild (or whatever
object on it you want)
"Amos" <none> wrote in message news:Ox**************@tk2msftngp13.phx.gbl...
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.

Nov 16 '05 #2

P: n/a
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

"William Ryan eMVP" <bi**@NoSp4m.devbuzz.com> wrote in message
news:#T**************@TK2MSFTNGP09.phx.gbl...
Amos:

If I understand you correctly, just pass in the ActiveMDIChild (or whatever object on it you want)
"Amos" <none> wrote in message news:Ox**************@tk2msftngp13.phx.gbl...
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.


Nov 16 '05 #3

P: n/a
"Amos" <none> wrote in message news:eb**************@tk2msftngp13.phx.gbl...
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
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.