Exemple #1
0
        void Cut()
        {
            IEdit atb = fm.CurrentControl as IEdit;

            if (atb != null && ((Control)atb).Focused)
            {
                try
                {
                    atb.Cut();
                }
                catch (System.Runtime.InteropServices.ExternalException)
                {
                    // something is breaking the clipboard
                    Trace.WriteLine("Could not cut to clipboard, is VNC open? This is a known error.");
                }
            }
        }