473,378 Members | 1,438 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,378 software developers and data experts.

Clipboard - why is it so limited?

Hi

Needed a title like that to get you reading :-)

Having never programmed for the Clipboard before, I expected it to
work as follows: multiple data formats can be supported by just
storing the data, keyed by the format name. After the application that
has placed a custom format into the Clipboard has closed, the data
should still be there and later, after another instance of that
application has been created, you should still be able to Paste that
data back in. But you can't!! Instead, the IDataObject reference is
put in the Clipboard meaning that the 'source' application must still
be alive. Closing it down means you lose the data. Can someone explain
to me a good reason for this? It seems extremely limiting - the data
doesn't 'need' the application - it's just data.

Emma Middlebrook
em**************@fastmail.fm
Jul 21 '05 #1
1 1646
Rendering a clipboard format can be very expensive in terms of CPU and
memory.

For example, suppose someone has selected "Copy" of a 2GB file in Explorer.
Copying the file data to the clipboard would take ages and consume a massive
amount of memory. By storing the reference, the file doesn't need to be
loaded into memory in several clipboard formats, but programs that need to
access the clipboard data can.

Regards
Aaron Queenan.

"emma middlebrook" <em**************@fastmail.fm> wrote in message
news:e2**************************@posting.google.c om...
: Hi
:
: Needed a title like that to get you reading :-)
:
: Having never programmed for the Clipboard before, I expected it to
: work as follows: multiple data formats can be supported by just
: storing the data, keyed by the format name. After the application that
: has placed a custom format into the Clipboard has closed, the data
: should still be there and later, after another instance of that
: application has been created, you should still be able to Paste that
: data back in. But you can't!! Instead, the IDataObject reference is
: put in the Clipboard meaning that the 'source' application must still
: be alive. Closing it down means you lose the data. Can someone explain
: to me a good reason for this? It seems extremely limiting - the data
: doesn't 'need' the application - it's just data.
:
: Emma Middlebrook
: em**************@fastmail.fm
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
1
by: emma middlebrook | last post by:
Hi Needed a title like that to get you reading :-) Having never programmed for the Clipboard before, I expected it to work as follows: multiple data formats can be supported by just storing...
16
by: ad | last post by:
Hi, How can we get the content of clipboard with program?
15
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the...
4
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hello Can you please give me a sample code on how to copy a Table into a clipboard using vb.net Thank you
2
by: alastairgarrow | last post by:
Hi there I am looking for some help in getting a clipboard image into an Sql Database table. My plan is to have a web page that will allow the user to copy an image on their home computer and...
1
by: Figmo | last post by:
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active...
20
by: Joe Duchtel | last post by:
Hello - I have the following code to get a bitmap from the clipboard and to save it to a *.png file ... Dim lData As IDataObject = Clipboard.GetDataObject() If...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.