Пример #1
0
 private 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)
     {
         Logging.Error("ConnectComplete to VNC", Exc);
     }
     // Change the Form's title to match desktop name
 }
 private void rd_ExceptionEvent(object sender, VncSharp.ExceptionEventArgs e)
 {
     MainForm.thisForm.Status(m_tab.Title + ": Exception: " + e.Message);
     Disconnect();
 }
Пример #3
0
 public void SendSpecialKeys(VncSharp.SpecialKeys Keys)
 {
     rd.SendSpecialKeys(Keys);
 }
 private void rd_ConnectComplete(object sender, VncSharp.ConnectEventArgs e)
 {
     m_tab.Title = e.DesktopName;
 }