O
Oli
Hi -
I would like to set some properties to constants (these may ultimately
come from app.config) eg the Size property.
If I do this in my Form constructor - then the values seem not to get
applied in the designer. Also - the "InitializeComponent" call has
already done a Suspend/Resume layout - so I am concerned that changing
properties subsequently might cause flicker etc.
I have taken to changing the .designer.cs file by hand - but this is
surely nasty....
any suggestions?
current code in .designer.cs (yes the project is called "Magnum" -
sorry about that) :
private void InitializeComponent()
{
this.SuspendLayout();
//
// BackOffice
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = DW.Shops.Magnum.Classes.Style.MainPaneSize;
this.Name = "BackOffice";
this.Text = "BackOffice";
this.ResumeLayout(false);
}
I would like to set some properties to constants (these may ultimately
come from app.config) eg the Size property.
If I do this in my Form constructor - then the values seem not to get
applied in the designer. Also - the "InitializeComponent" call has
already done a Suspend/Resume layout - so I am concerned that changing
properties subsequently might cause flicker etc.
I have taken to changing the .designer.cs file by hand - but this is
surely nasty....
any suggestions?
current code in .designer.cs (yes the project is called "Magnum" -
sorry about that) :
private void InitializeComponent()
{
this.SuspendLayout();
//
// BackOffice
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = DW.Shops.Magnum.Classes.Style.MainPaneSize;
this.Name = "BackOffice";
this.Text = "BackOffice";
this.ResumeLayout(false);
}