コード例 #1
0
        //*************************************************************************************************************
        public override bool OnTabClose()
        {
            bool ret = true;

            if (form != null)
            {
                ret = form.OnTabClose();
            }
            form = null;
            return(ret);
        }
コード例 #2
0
        //*************************************************************************************************************
        static void ConnectTrd(object state)
        {
            VNCForm form = (VNCForm)state;

            form.BeginInvoke((MethodInvoker) delegate
            {
                try
                {
                    form.vnc.VncPort     = form.server.Port;
                    form.vnc.GetPassword = form.VNCPassword;
                    //form.vnc.Connect(form.server.Host);
                    form.vnc.Connect(form.server.Host, false, form.server.AutoScale);
                }
                catch (Exception ex)
                {
                    form.vnc_ConnectionLost(null, null);
                    MessageBox.Show(ex.Message);
                }
            });
        }
コード例 #3
0
 //*************************************************************************************************************
 public override void Open(TabPageEx tab)
 {
     form        = new VNCForm(this);
     form.Parent = tab;
     form.Show();
 }