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
0 thatraja 395
1 Sergey Alexandrovich Kryukov 295
2 Gihan Liyanage 261
3 kbrandwijk 204
4 CPallini 190
0 OriginalGriff 793
1 Sergey Alexandrovich Kryukov 604
2 Dnyaneshwar@Pune 604
3 Kornfeld Eliyahu Peter 530
4 thatraja 440


Advertise | Privacy | Mobile
Web01 | 2.8.140902.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2014
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