Click here to Skip to main content
13,090,299 members (89,343 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i write :
Clipboard.SetDataObject(textzone as object)
with textzone = the place should the clipboard pit the data on it but vs shows error :
Error 1 Comma, ')', or a valid expression continuation expected. C:\Users\G-pc\documents\visual studio 2012\Projects\p\p\Form1.vb 16 42 p

someone has idea about this??
Posted 24-Jan-13 3:50am
start444 24-Jan-13 9:56am
i use express 12
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I looked at the Clipboard Class documentation and found this example at Clipboard.SetData Method
Clipboard.SetData(DataFormats.Text, CType(textzone, Object))

The example assumes that "textzone" is declared As String.

For future questions, provide the declarations of your variables with your sample code. Thanks.
start444 24-Jan-13 10:02am
you meen we cant but as just but , and type
Mike Meinz 24-Jan-13 10:10am
I am sorry but I have no idea what you mean by that comment.
Mike Meinz 24-Jan-13 12:16pm
I read the documentation and the documentation does not show "As" in the syntax.
start444 24-Jan-13 12:24pm
ok now i am understanding, thanks for your answer and comment
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

start444 24-Jan-13 12:25pm
thanks Abhishek Pant

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100