473,411 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Adding Cut/Copy/paste functionality to my App?

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
3 2359
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Amos | last post by:
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...
3
by: Tor Inge Rislaa | last post by:
Copy, Cut and Paste How to code the Copy, Cut and Paste functionality in VB.NET. In VB 6.0 I used the following code: 'For Copy Clipboard.Clear Clipboard.SetText...
13
by: John | last post by:
Hi How can I implement cut or copy or paste in code? Thanks Regards
6
by: Darrell Wesley | last post by:
Is there any way to copy an entire row from the Data Grid and then Paste it into a new row, modify some data and then save it back to the database? This grid is bound to a dataadapter with a...
0
by: Richard Crowley | last post by:
I have a dynamically-generated asp web page which uses Office Web Components to display an Excel bar chart of the user-selected data. The page works fine, but the users would like to copy-n-paste...
6
by: Ben R. | last post by:
Hi, I've got a vb.net winforms app. Out of the box, I can use Ctrl X, C and V as expected in controls like textboxes. I've got a menustrip, and if I click the link "Add standard items" which...
0
by: MKBender | last post by:
dear all, I have a dataGridView that has cut,copy, and paste functionality for the cells of the datagrid but now I would like to add the functionality for the user to copy, cut and paste an...
2
by: al_johnson222 | last post by:
>From any page, I want to be able to call a JS function that will do the equivelant of select all, and copy. This data will then be posted to a page that will log it. This would be easy using...
9
by: Alan T | last post by:
Any source code example I can use to save the clipboard content to an object, then I will do a copy and paste, finally put back the 'saved' clipboard content back to clipboard ?
8
by: jh | last post by:
I'd like to copy/paste into a listbox during runtime. I can do this for a textbox but can't figure out how to accomplish this for a listbox. Any help? Thanks.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.