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
from
http://groups.google.com/groups?q=compact+framework+clipboard&hl=de&lr=&ie=UTF-8
&selm=%23uonLo9QDHA.3192%40tk2msftngp13.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
> MSDN Doc. tells me to use this command :
> textBox1.Copy()
[quoted text clipped - 4 lines]
> Any idea on it.
> Thank you so much
1. Install the the OpenNetCF Smart Device Framework v1.0 here:
http://www.opennetcf.org/PermaLink.aspx?guid=3a013afd-791e-45ef-802a-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
> MSDN Doc. tells me to use this command :
> textBox1.Copy()
[quoted text clipped - 4 lines]
> Any idea on it.
> Thank you so much
Art - 17 Mar 2004 10:31 GMT
Thank you so much.
I'll try it
> 1. Install the the OpenNetCF Smart Device Framework v1.0 here:
http://www.opennetcf.org/PermaLink.aspx?guid=3a013afd-791e-45ef-802a-4c1dbe1cfef9
> 2. In your .Net CF project in visual studios add a reference to the
> "OpenNETCF.Windows.Forms" library
[quoted text clipped - 26 lines]
> > Any idea on it.
> > Thank you so much