ObjectEditor.frmMain.panelMain_Selecting C# (CSharp) Method

panelMain_Selecting() private method

private panelMain_Selecting ( object sender, TabControlCancelEventArgs e ) : void
sender object
e TabControlCancelEventArgs
return void
        private void panelMain_Selecting(object sender, TabControlCancelEventArgs e)
        {
            if (e.TabPageIndex == 0)
            {
                WinAPI.UnsetWindowExFlag(MainObj.Handle, (int)Win32.WS_EX_COMPOSITED);
            }
            else
            {
                WinAPI.SetWindowExFlag(MainObj.Handle, (int)Win32.WS_EX_COMPOSITED);
            }
        }