473,383 Members | 1,792 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,383 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 2358
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.