views:

174

answers:

1

Hi,

I have been working on a project involving the .NET VNC Client VncSharp (VncSharp Website).

When inheriting from the RemoteDesktop object, when I call the new object I get the exception...

Value of 'null' is not valid for 'stream'.

Even code as simple as below throws the exception...

public class VncObject : RemoteDesktop
{     
    public VncObject()    
    {    
    }
}

Has any one had any experience of this library?

Thanks

A: 

I have found someone who had a fix...

If any one is interested, the design mode of the VNC control has a pretend desktop screenshot when you drag the control onto a form. When you inherit from the control it doesnt load the image correctly.

I solved this by downloadthing the source from their website and commented out all fields regarding...

Image  designModeDesktop;

Thanks :)

Chalkey