Exemplo n.º 1
0
        void mdi_Activate(MDIChild mc)
        {
            if (mc == null)
                return;
            if (bMono)
            {
                mc.Activate();
                this.Refresh(); //Forces a synchronous redraw of all controls
            }
            else
            {
            #if MONO
                mc.Activate();
                this.Refresh(); //Forces a synchronous redraw of all controls
            #else
                LockWindowUpdate(this.Handle);
                mc.Activate();
                this.Refresh(); //Forces a synchronous redraw of all controls

                LockWindowUpdate(IntPtr.Zero);
            #endif
            }
        }
Exemplo n.º 2
0
        void mdi_Activate(MDIChild mc)
        {
            if (mc == null)
                return;
            LockWindowUpdate(this.Handle);
            mc.Activate();
            this.Refresh(); //Forces a synchronous redraw of all controls

            LockWindowUpdate(IntPtr.Zero);
        }