Windows Forms sizing issue when migrating from a 32bit to 64bit

Viewed 31

We are migrating a 32bit WinForms app to 64bit. Given identical OS and screen-resolution, we've noticed that the application shell in it's maximized state overflows the monitor in the x64 version, but works fine in the x32 version. Why does this happen please? Is there some issue with the migration that could have caused this?

Our code in the .designer.cs file:

 private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
            Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
            this._ShellForm_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
            this.stableRibbonManager = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
            this._ShellForm_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
            this._ShellForm_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
            this._ShellForm_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
            this.stableShellStatus = new Infragistics.Win.UltraWinStatusBar.UltraStatusBar();
            this.contentWorkspace = new CABExtensions.CustomWorkspaces.DockingWorkspace(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.stableRibbonManager)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.stableShellStatus)).BeginInit();
            this.SuspendLayout();
            // 
            // _ShellForm_Toolbars_Dock_Area_Left
            // 
            this._ShellForm_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
            this._ShellForm_Toolbars_Dock_Area_Left.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
            this._ShellForm_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
            this._ShellForm_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
            this._ShellForm_Toolbars_Dock_Area_Left.InitialResizeAreaExtent = 8;
            this._ShellForm_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 55);
            this._ShellForm_Toolbars_Dock_Area_Left.Name = "_ShellForm_Toolbars_Dock_Area_Left";
            this._ShellForm_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(8, 920);
            this._ShellForm_Toolbars_Dock_Area_Left.ToolbarsManager = this.stableRibbonManager;
            // 
            // stableRibbonManager
            // 
            this.stableRibbonManager.DesignerFlags = 1;
            this.stableRibbonManager.DockWithinContainer = this;
            this.stableRibbonManager.DockWithinContainerBaseType = typeof(System.Windows.Forms.Form);
            this.stableRibbonManager.Ribbon.Visible = true;
            // 
            // _ShellForm_Toolbars_Dock_Area_Right
            // 
            this._ShellForm_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
            this._ShellForm_Toolbars_Dock_Area_Right.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
            this._ShellForm_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
            this._ShellForm_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
            this._ShellForm_Toolbars_Dock_Area_Right.InitialResizeAreaExtent = 8;
            this._ShellForm_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(1192, 55);
            this._ShellForm_Toolbars_Dock_Area_Right.Name = "_ShellForm_Toolbars_Dock_Area_Right";
            this._ShellForm_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(8, 920);
            this._ShellForm_Toolbars_Dock_Area_Right.ToolbarsManager = this.stableRibbonManager;
            // 
            // _ShellForm_Toolbars_Dock_Area_Top
            // 
            this._ShellForm_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
            this._ShellForm_Toolbars_Dock_Area_Top.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
            this._ShellForm_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
            this._ShellForm_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
            this._ShellForm_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
            this._ShellForm_Toolbars_Dock_Area_Top.Name = "_ShellForm_Toolbars_Dock_Area_Top";
            this._ShellForm_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(1200, 55);
            this._ShellForm_Toolbars_Dock_Area_Top.ToolbarsManager = this.stableRibbonManager;
            // 
            // _ShellForm_Toolbars_Dock_Area_Bottom
            // 
            this._ShellForm_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
            this._ShellForm_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(255)))));
            this._ShellForm_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
            this._ShellForm_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
            this._ShellForm_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 975);
            this._ShellForm_Toolbars_Dock_Area_Bottom.Name = "_ShellForm_Toolbars_Dock_Area_Bottom";
            this._ShellForm_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(1200, 0);
            this._ShellForm_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.stableRibbonManager;
            // 
            // stableShellStatus
            // 
            appearance11.ImageVAlign = Infragistics.Win.VAlign.Middle;
            appearance11.TextVAlignAsString = "Bottom";
            this.stableShellStatus.Appearance = appearance11;
            this.stableShellStatus.Location = new System.Drawing.Point(0, 975);
            this.stableShellStatus.Name = "stableShellStatus";
            appearance12.ImageVAlign = Infragistics.Win.VAlign.Middle;
            appearance12.TextVAlignAsString = "Middle";
            this.stableShellStatus.PanelAppearance = appearance12;
            this.stableShellStatus.Size = new System.Drawing.Size(1200, 25);
            this.stableShellStatus.TabIndex = 11;
            this.stableShellStatus.ButtonClick += new Infragistics.Win.UltraWinStatusBar.PanelEventHandler(this.stableShellStatus_ButtonClick);
            // 
            // contentWorkspace
            // 
            this.contentWorkspace.BackColor = System.Drawing.Color.LightSteelBlue;
            this.contentWorkspace.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.contentWorkspace.Dock = System.Windows.Forms.DockStyle.Fill;
            this.contentWorkspace.Location = new System.Drawing.Point(8, 55);
            this.contentWorkspace.Name = "contentWorkspace";
            this.contentWorkspace.Size = new System.Drawing.Size(1184, 920);
            this.contentWorkspace.TabIndex = 21;
            // 
            // ShellForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.ClientSize = new System.Drawing.Size(1200, 1000);
            this.Controls.Add(this.contentWorkspace);
            this.Controls.Add(this._ShellForm_Toolbars_Dock_Area_Left);
            this.Controls.Add(this._ShellForm_Toolbars_Dock_Area_Right);
            this.Controls.Add(this._ShellForm_Toolbars_Dock_Area_Top);
            this.Controls.Add(this._ShellForm_Toolbars_Dock_Area_Bottom);
            this.Controls.Add(this.stableShellStatus);
            this.DoubleBuffered = true;
            this.MinimumSize = new System.Drawing.Size(1200, 1000);
            this.Name = "ShellForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "My System";
            ((System.ComponentModel.ISupportInitialize)(this.stableRibbonManager)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.stableShellStatus)).EndInit();
            this.ResumeLayout(false);
}

Any inputs would really help.

0 Answers
Related