Click here to Skip to main content
15,881,863 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
start444 24-Jan-13 9:56am    
i use vs.net express 12

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.
 
Share this answer
 
v3
Comments
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
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900