PC Review


Reply
Thread Tools Rate Thread

how to copy string to clipboard in pocket pc?

 
 
Art
Guest
Posts: n/a
 
      15th Mar 2004
MSDN Doc. tells me to use this command :
textBox1.Copy()

But it doesn't work.
I'm not sure whether it is the command for pc or for ppc.

Any idea on it.
Thank you so much


 
Reply With Quote
 
 
 
 
Milosz - [playseven.com]
Guest
Posts: n/a
 
      15th Mar 2004
from
http://groups.google.com/groups?q=co...phx.gbl&rnum=1

peter answered to that :

The Clipboard object is not included in the Compact Framework. However the
free OpenNETCF WinAPI library contains read-made methods to set and get text
from the clipboard using P/Invoke to the Windows APIs.
http://www.opennetcf.org/winapi.asp



"Art" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> MSDN Doc. tells me to use this command :
> textBox1.Copy()
>
> But it doesn't work.
> I'm not sure whether it is the command for pc or for ppc.
>
> Any idea on it.
> Thank you so much
>
>



 
Reply With Quote
 
Andrew Jones
Guest
Posts: n/a
 
      16th Mar 2004
1. Install the the OpenNetCF Smart Device Framework v1.0 here:

http://www.opennetcf.org/PermaLink.a...a-4c1dbe1cfef9

2. In your .Net CF project in visual studios add a reference to the
"OpenNETCF.Windows.Forms" library

3. "Imports OpenNETCF.Windows.Forms"

4. Add this code:

Dim iData As IDataObject = Clipboard.GetDataObject()

Dim strTestClipBoard As String

'to set clipboard use the below code:

iData.SetData(DataFormats.Text.Trim, TextBox1.SelectedText) 'or whatever the
source is if you're setting the clipboard

'to GET clipboard use the below code:

strTestClipBoard = CType(iData.GetData(DataFormats.Text), String)



Andrew Jones

"Art" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> MSDN Doc. tells me to use this command :
> textBox1.Copy()
>
> But it doesn't work.
> I'm not sure whether it is the command for pc or for ppc.
>
> Any idea on it.
> Thank you so much



 
Reply With Quote
 
Art
Guest
Posts: n/a
 
      17th Mar 2004
Thank you so much.
I'll try it


"Andrew Jones" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 1. Install the the OpenNetCF Smart Device Framework v1.0 here:
>
>

http://www.opennetcf.org/PermaLink.a...a-4c1dbe1cfef9
>
> 2. In your .Net CF project in visual studios add a reference to the
> "OpenNETCF.Windows.Forms" library
>
> 3. "Imports OpenNETCF.Windows.Forms"
>
> 4. Add this code:
>
> Dim iData As IDataObject = Clipboard.GetDataObject()
>
> Dim strTestClipBoard As String
>
> 'to set clipboard use the below code:
>
> iData.SetData(DataFormats.Text.Trim, TextBox1.SelectedText) 'or whatever

the
> source is if you're setting the clipboard
>
> 'to GET clipboard use the below code:
>
> strTestClipBoard = CType(iData.GetData(DataFormats.Text), String)
>
>
>
> Andrew Jones
>
> "Art" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > MSDN Doc. tells me to use this command :
> > textBox1.Copy()
> >
> > But it doesn't work.
> > I'm not sure whether it is the command for pc or for ppc.
> >
> > Any idea on it.
> > Thank you so much

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy a string variable to the clipboard Duncs Microsoft Access 2 8th Oct 2009 11:38 AM
Clipboard gets empty by itself, cleared clipboard, copy paste doesn't work, outlook clears clipboard, problems with clipboard - possible solution Jens Hoerburger Microsoft Outlook 0 24th Aug 2006 02:44 PM
How to copy string variable to clipboard Douglas J. Steele Microsoft Access 2 21st Aug 2004 08:57 PM
copy string variable contents to clipboard Ted Microsoft Access VBA Modules 3 31st Dec 2003 08:13 PM
To COPY a string into the clipboard ... Hariharan Subramony Microsoft C# .NET 2 4th Dec 2003 08:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:55 PM.