Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27004

VS 2012 Copy Paste/change data issue

$
0
0
so this is a weird one.. I read data from one excel spreadsheeet and convert it into something different in another spread sheet. Here was "I thought" the easiest solution.....change the clipboard data... The problem is that it won't work on my Windows 8/Office 2013(works rarely), but will work on my Windows 7/Office 2010 (admin). However when I use it at work (windows 7/office 2010) it doesn't work (user not admin).. So originally I thought it was a windows 8 issue, but now I see the same issue with Windows 7 at work (non admin). Also an issue with Outlook.. seems as though outlook monitors the clipboard as well.. I have had outlook crash when I run this simple program which basically is just a timer that monitors the clipboard and REPLACES the text so it can be pasted into another format.

So here is an example.

I have a timer running to monitor the clipboard. IF the clipboard contains 1 2 3 4 5 it will REPLACE them with "6 7 8 9 10". Its like the Clipboard.settext is not working. It works intermittently not consistantly unless its on my home Windows 7/Office 2010. So I know my coding should be right its just something with the clipboard.

is there a more effiecent way of intercepting the clipboard/reading/changing/writing????besides Clipboard.gettext/settext

I read something about clipboard threads/threadstates when researching, but did not come accross a good example...

Viewing all articles
Browse latest Browse all 27004

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>