Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.Net CF - cut, copy, paste, context menu, clipboard

Status
Not open for further replies.

barryna

Programmer
Feb 15, 2002
111
US
How do I copy to clipboard, paste from clipboard from my context menu in my smart device (pocket pc) app?

I cannot find any info on microsoft.com that uses the real clipboard. Their stupid examples show how to use a global variable in your pocket pc app. I want to copy and paste from other apps into mine.

Thanks,

Nick
 
I'm not sure if this will help, but I've used this to copy to and paste from the clipboard in a Windows application.

Clipboard.SetDataObject(txtMyData.text)

Dim valueObj As DataObject = Clipboard.GetDataObject
Dim dataString As String
If valueObj.GetDataPresent(DataFormats.Text) = True Then
dataString = CType(valueObj.GetData(DataFormats.Text), String)
MsgBox(dataString)
End If
 
yeah, I'm aware of that method used in windows applications. It is not available in the .Net CF. Does anyone know how to do this?

Nick
 
Still have not figured this one out. Anyone?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top