Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2004

Tip: Looking for answers? Try searching our database.

how to copy string to clipboard in pocket pc?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Art - 15 Mar 2004 10:54 GMT
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
Milosz - [playseven.com] - 15 Mar 2004 12:17 GMT
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
Andrew Jones - 16 Mar 2004 18:17 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.