Hi,I have included the basic format of my code below. If I start my application with the VNC Server running on the other PC then it connects fine. When I stop the server running on the other PC the disconnected event is fired. But after that when I restart the VNC Server on the other PC the ConnectionAccepted event is never fired. Any idea why this event is not fired?
Thanks, karen
public VNCPage ()
{
InitializeComponent();
viewerX.ConnectEx( "PCName", 5900,
"hello" );viewerX.Disconnected +=
new EventHandler( viewerX_Disconnected );viewerX.ConnectionAccepted +=
new AxViewerX._ISmartCodeVNCViewerEvents_ConnectionAcceptedEventHandler( viewerX_ConnectionAccepted );}
void viewerX_ConnectionAccepted( object sender, AxViewerX._ISmartCodeVNCViewerEvents_ConnectionAcceptedEvent e )
{
viewerX.ConnectEx( "PCName", 5900, "hello" );
viewerX.StopListen();
}
void viewerX_Disconnected ( object sender, EventArgs e )
{
viewerX.ListenEx( 5900 );
}