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

@@ -38,7 +38,8 @@
//
// btnOK
//
this.btnOK.Location = new System.Drawing.Point(550, 368);
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.Location = new System.Drawing.Point(546, 368);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 23);
this.btnOK.TabIndex = 6;
@@ -48,8 +49,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(16, 368);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.btnCancel.TabIndex = 5;
@@ -58,7 +60,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,9 +68,8 @@
//
// 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;
@@ -77,18 +77,17 @@
// lblStatus
//
this.lblStatus.AutoSize = true;
this.lblStatus.Dock = System.Windows.Forms.DockStyle.Top;
this.lblStatus.Location = new System.Drawing.Point(16, 211);
this.lblStatus.Location = new System.Drawing.Point(17, 234);
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(0, 13);
this.lblStatus.Size = new System.Drawing.Size(91, 13);
this.lblStatus.TabIndex = 10;
this.lblStatus.Text = "Work order status";
//
// cbStatus
//
this.cbStatus.Dock = System.Windows.Forms.DockStyle.Top;
this.cbStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbStatus.FormattingEnabled = true;
this.cbStatus.Location = new System.Drawing.Point(16, 224);
this.cbStatus.Location = new System.Drawing.Point(16, 253);
this.cbStatus.Name = "cbStatus";
this.cbStatus.Size = new System.Drawing.Size(605, 21);
this.cbStatus.TabIndex = 11;
@@ -107,10 +106,9 @@
this.Controls.Add(this.btnCancel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "SetWOStatus";
this.Padding = new System.Windows.Forms.Padding(16);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "SetWOStatus";
this.Text = "Set WO Status";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SetWOStatus_FormClosing);
this.Load += new System.EventHandler(this.SetWOStatus_Load);
this.ResumeLayout(false);