Click here to Skip to main content
Rate this: bad
good
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 3:50am
Comments
start444 at 24-Jan-13 9:56am
   
i use vs.net express 12
Rate this: bad
good
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.
  Permalink  
v3
Comments
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
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 sanket saxena 335
1 Abhinav S 333
2 Sergey Alexandrovich Kryukov 275
3 OriginalGriff 235
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,497
1 OriginalGriff 4,850
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid