on 07-29-2008 10:01 AM
Dear ,
i want to access the global clipboard data , how can i do it ?
In Windows Application , i can access the clipboard without any problem by using
Clipboard.GetDataObject()
OR
My.Computer.Clipboard
.....but if i am going to write this above code on B1 Add-on , it fail
Thanks
Gordon
Im using
My.Computer.Clipboard.GetText() and inside addon it works - in 2007.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Working with clipboard is possible only in single thread classes defined with correct stathreadattribute.
Item event isnt single, so you cannot use it directly. Solution for you is define new class with stathreadattribute and inside itemevent call methods inside this class. Try to search in google for stathreadattribute and clipboard, youll find a lot of examples (I dont have acces now to my source codes to send it you directly).
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.