static void Core_OnActivated(object sender, EventArgs e) { m_Window.TopMost = m_bMaximized; m_Window.Update(); Agk.Resumed(); Agk.WindowMoved(); }