Fixed issues when running in windows 7 which doesn't seem to support padding properly, rejigged everything to be simpler

This commit is contained in:
2022-07-20 20:21:20 +00:00
parent 63eebfee2f
commit 551db31a91
26 changed files with 175 additions and 185 deletions

View File

@@ -32,12 +32,12 @@
this.btnCancel = new System.Windows.Forms.Button();
this.lblTitle = new System.Windows.Forms.Label();
this.lblDescription = new System.Windows.Forms.Label();
this.lblStatus = new System.Windows.Forms.Label();
this.ckAutoClose = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// btnOK
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.Location = new System.Drawing.Point(550, 368);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 23);
@@ -48,8 +48,9 @@
//
// btnCancel
//
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(4, 368);
this.btnCancel.Location = new System.Drawing.Point(12, 368);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.btnCancel.TabIndex = 5;
@@ -58,7 +59,6 @@
//
// lblTitle
//
this.lblTitle.Dock = System.Windows.Forms.DockStyle.Top;
this.lblTitle.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblTitle.Location = new System.Drawing.Point(16, 16);
this.lblTitle.Name = "lblTitle";
@@ -67,29 +67,18 @@
//
// lblDescription
//
this.lblDescription.Dock = System.Windows.Forms.DockStyle.Top;
this.lblDescription.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblDescription.Location = new System.Drawing.Point(16, 46);
this.lblDescription.Location = new System.Drawing.Point(16, 52);
this.lblDescription.Name = "lblDescription";
this.lblDescription.Size = new System.Drawing.Size(605, 165);
this.lblDescription.TabIndex = 8;
//
// lblStatus
//
this.lblStatus.AutoSize = true;
this.lblStatus.Dock = System.Windows.Forms.DockStyle.Top;
this.lblStatus.Location = new System.Drawing.Point(16, 211);
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(0, 13);
this.lblStatus.TabIndex = 10;
//
// ckAutoClose
//
this.ckAutoClose.AutoSize = true;
this.ckAutoClose.Dock = System.Windows.Forms.DockStyle.Top;
this.ckAutoClose.Location = new System.Drawing.Point(16, 224);
this.ckAutoClose.Location = new System.Drawing.Point(16, 223);
this.ckAutoClose.Name = "ckAutoClose";
this.ckAutoClose.Size = new System.Drawing.Size(605, 17);
this.ckAutoClose.Size = new System.Drawing.Size(177, 17);
this.ckAutoClose.TabIndex = 11;
this.ckAutoClose.Text = "Auto close invoiced work orders";
this.ckAutoClose.UseVisualStyleBackColor = true;
@@ -101,17 +90,15 @@
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(637, 403);
this.Controls.Add(this.ckAutoClose);
this.Controls.Add(this.lblStatus);
this.Controls.Add(this.lblDescription);
this.Controls.Add(this.lblTitle);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.btnCancel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "SetAutoClose";
this.Padding = new System.Windows.Forms.Padding(16);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "SetAutoClose";
this.Text = "Set auto close";
this.Load += new System.EventHandler(this.SetQBClass_load);
this.ResumeLayout(false);
this.PerformLayout();
@@ -124,7 +111,6 @@
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Label lblTitle;
private System.Windows.Forms.Label lblDescription;
private System.Windows.Forms.Label lblStatus;
private System.Windows.Forms.CheckBox ckAutoClose;
}
}