protected override void OnGotFocus(EventArgs e) { base.OnGotFocus(e); void* hwnd = TryGetConEmuHwnd(); if(hwnd != null) WinApi.SetFocus(hwnd); }