Window docking and maximization problem-Collection of common programming errors

Exception source:VideoOS.RemoteClient.Application

Exception type:System.InvalidOperationException

Exception message:Operation is not valid due to the current state of the object.

Exception Target Site: …..ctor

   at VideoOS.RemoteClient.Application.Common.Taskbar..ctor()

   at VideoOS.RemoteClient.Application.Common.ScreenUtilities.GetWorkingExTaskbar(Screen screen)

   at VideoOS.RemoteClient.Application.Application.Maximize(Boolean fullscreen)

   at VideoOS.RemoteClient.Application.Application.Maximize()

   at VideoOS.RemoteClient.Application.Application.ApplicationController_MaximizeEvent(Object sender, MaximizeEventArgs e)

   at VideoOS.RemoteClient.Application.Application.ApplicationController_ToggleMaximizeEvent(Object sender, MaximizeEventArgs e)

   at VideoOS.RemoteClient.Application.Controllers.ApplicationController.FireToggleMaximizeEvent()

   at VideoOS.RemoteClient.Application.Controllers.ApplicationController.ToggleMaximize()

   at VideoOS.RemoteClient.Application.UI.TitleBar.TitleBar.TitleBar_MaximizeEvent(Object sender, EventArgs e)

   at VideoOS.RemoteClient.Application.UI.TitleBar.TitleBarForm.FireMaximizeEvent()

   at VideoOS.RemoteClient.Application.UI.TitleBar.TitleBarForm._maximizePictureBox_Click(Object sender, EventArgs e)

   at System.Windows.Forms.Control.OnClick(EventArgs e)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)