Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
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 4:50am
start444 at 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 at 24-Jan-13 10:02am
you meen we cant but as just but , and type
Mike Meinz at 24-Jan-13 10:10am
I am sorry but I have no idea what you mean by that comment.
Mike Meinz at 24-Jan-13 12:16pm
I read the documentation and the documentation does not show "As" in the syntax.
start444 at 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 at 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)

Advertise | Privacy | Mobile
Web02 | 2.8.150129.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2015
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