コード例 #1
0
 private void remoteDesktop1_ConnectComplete(object sender, VncSharp.ConnectEventArgs e)
 {
     this.Location = new Point(0, 0);
     this.Size     = Screen.PrimaryScreen.WorkingArea.Size;
     //this.ClientSize = new Size(e.DesktopWidth, e.DesktopHeight);
     this.remoteDesktop1.Size = new System.Drawing.Size(e.DesktopWidth, e.DesktopHeight);
     this.CONButton.Text      = "Connect";
     this.CONButton.Enabled   = false;
     this.DCbutton.Enabled    = true;
     this.hostName            = e.DesktopName;
 }
コード例 #2
0
        //*************************************************************************************************************
        private void vnc_ConnectComplete(object sender, VncSharp.ConnectEventArgs e)
        {
            loadingCircle1.Active  = false;
            loadingCircle1.Visible = false;

            if (server.SendKeys == true)
            {
                vnc.SendSpecialKeys(
                    VncSharp.SpecialKeys.Alt |
                    VncSharp.SpecialKeys.AltF4 |
                    VncSharp.SpecialKeys.Ctrl |
                    VncSharp.SpecialKeys.CtrlAltDel |
                    VncSharp.SpecialKeys.CtrlEsc);
            }
        }
コード例 #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
 }
コード例 #4
0
 private void RDesk_ConnectComplete(object sender, VncSharp.ConnectEventArgs e)
 {
     this.VInfo.ConnectedStatus = ConnectedStatus.正常;
 }