public static void SEBToForeground()
 {
     try
     {
         SebApplicationChooserForm.forceSetForegroundWindow(SEBClientInfo.SebWindowsClientForm.Handle);
         SEBClientInfo.SebWindowsClientForm.Activate();
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 2
0
        /// ----------------------------------------------------------------------------------------
        /// <summary>
        /// Move SEB to the foreground.
        /// </summary>
        /// ----------------------------------------------------------------------------------------
        public static void SEBToForeground()
        {
            //if ((bool)SEBSettings.valueForDictionaryKey(SEBSettings.settingsCurrent, SEBSettings.KeyShowTaskBar))
            //{
            try
            {
                //SetForegroundWindow(SEBClientInfo.SebWindowsClientForm.Handle);
                SebApplicationChooserForm.forceSetForegroundWindow(SEBClientInfo.SebWindowsClientForm.Handle);
                SEBClientInfo.SebWindowsClientForm.Activate();
            }
            catch (Exception)
            {
            }

            //}
        }
Exemplo n.º 3
0
        /// ----------------------------------------------------------------------------------------
        /// <summary>
        /// Move SEB to the foreground.
        /// </summary>
        /// ----------------------------------------------------------------------------------------
        public static void SEBToForeground()
        {
            //if ((bool)SEBSettings.valueForDictionaryKey(SEBSettings.settingsCurrent, SEBSettings.KeyShowTaskBar))
            //{
            try
            {
                if (SEBClientInfo.SebWindowsClientForm.InvokeRequired)
                {
                    SEBClientInfo.SebWindowsClientForm.Invoke((MethodInvoker) delegate { SEBToForeground(); });
                    return;
                }
                // this code will run on main (UI) thread

                //SetForegroundWindow(SEBClientInfo.SebWindowsClientForm.Handle);
                SebApplicationChooserForm.forceSetForegroundWindow(SEBClientInfo.SebWindowsClientForm.Handle);
                SEBClientInfo.SebWindowsClientForm.Activate();
            }
            catch (Exception)
            {
            }

            //}
        }