![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Private sub Capture() dim altscan as short dim snapparam as short altscan = MapVirtualKey(VK_MENU, 0) keybd_event(VK_SNAPSHOT, snapparam, 0, 0) picturebox1.image = Clipboard.GetDataObject.GetData(DataFormats.Bitmap ) End Sub this part of the code works fine when calling directly in a Client App. but when calling this Sub Remotly, it returns exception at the last Line where getting the Image from the Clipboard the exception is "Object Reference not set to an instance of an Object" It is like nothing is been written to the Clipboard Any Idea Why? |
#3
| |||
| |||
|
|
I am getting this exact problem. I have a situation where i make a remoting call to the server. On the server it calls its clipboard, and all i get back is null. every time. if i take the EXACT same code and paste it into a windows forms test , it works perfectly. There must be something wierd that happens when you get remoted. Also it has the same behavior when the client and server are run on the same machine, and separate machines. "BADER" wrote: Private sub Capture() dim altscan as short dim snapparam as short altscan = MapVirtualKey(VK_MENU, 0) keybd_event(VK_SNAPSHOT, snapparam, 0, 0) picturebox1.image = Clipboard.GetDataObject.GetData(DataFormats.Bitmap ) End Sub this part of the code works fine when calling directly in a Client App. but when calling this Sub Remotly, it returns exception at the last Line where getting the Image from the Clipboard the exception is "Object Reference not set to an instance of an Object" It is like nothing is been written to the Clipboard Any Idea Why? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |