|
-
Aug 17th, 2007, 09:26 PM
#1
Thread Starter
Junior Member
-
Aug 18th, 2007, 02:39 AM
#2
Frenzied Member
Re: [VB.Net 2005] Clipboard in Windows Mobile..!!?
Hi,
to set text to the clipboard
Clipboard.SetDataObject(TextBox1.Text)
to get text from the clipboard
TextBox1.Text = Clipboard.GetDataObject()
The help file really is a wonderful resource - try it, you'll like it 
Pete
-
Aug 18th, 2007, 01:44 PM
#3
Thread Starter
Junior Member
-
Aug 18th, 2007, 01:57 PM
#4
Thread Starter
Junior Member
Re: [VB.Net 2005] Clipboard in Windows Mobile..!!?
thanks i found out what's the problem..
the problem with (Paste from Clipboard) option
Code:
text1.Text = Clipboard.GetDataObject()
will return the data as (Object) not (Text or String)
so the code must be like this:
Code:
Text1.Text = Clipboard.GetDataObject.GetData(System.Windows.Forms.DataFormats.Text, True)
so we convert the clipboard to string or text
Last edited by PC Master; Aug 18th, 2007 at 02:01 PM.
"Software & Hardware User"
"Car User"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|