public void RefreshScreen()
 {
     try
     {
         _VNC.FullScreenUpdate();
     }
     catch (Exception ex)
     {
         Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, Language.strVncRefreshFailed + Environment.NewLine + ex.Message, true);
     }
 }
 public void RefreshScreen()
 {
     try
     {
         VNC_Client.FullScreenUpdate();
     }
     catch (Exception ex)
     {
         Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg,
                                             Language.strVncRefreshFailed + Constants.vbNewLine + ex.Message,
                                             true);
     }
 }
Example #3
0
 void rd_ConnectComplete(object sender, VncSharp.ConnectEventArgs e)
 {
     // Update Form to match geometry of remote desktop
     //ClientSize = new Size(e.DesktopWidth, e.DesktopHeight);
     try {
         connected = true;
         VncSharp.RemoteDesktop rd = (VncSharp.RemoteDesktop)sender;
         rd.Visible = true;
         rd.BringToFront();
         rd.FullScreenUpdate();
         rd.Enabled = true;
     } catch (Exception Exc) {
         Terminals.Logging.Log.Fatal("ConnectComplete to VNC", Exc);
     }
     // Change the Form's title to match desktop name
 }