From c1c5bfd081ebacf40870ad5da5095f64962d7340 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 21 Jun 2017 12:41:22 +0000 Subject: [PATCH] C2017-025 logic added so that dropdown list opens when you click anywhere on the dropdown control --- .../frmBatchRefresh.Designer.cs | 18 ++++++++++++------ .../VEPROMS User Interface/frmBatchRefresh.cs | 4 ++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs b/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs index 0af424b8..37fe2ebf 100644 --- a/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs +++ b/PROMS/VEPROMS User Interface/frmBatchRefresh.Designer.cs @@ -114,46 +114,52 @@ namespace VEPROMS // // lblWarning // + this.lblWarning.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lblWarning.BackColor = System.Drawing.Color.PaleGoldenrod; this.lblWarning.ForeColor = System.Drawing.Color.Red; this.lblWarning.Location = new System.Drawing.Point(5, 175); this.lblWarning.Name = "lblWarning"; this.lblWarning.Size = new System.Drawing.Size(290, 38); - this.lblWarning.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; this.lblWarning.TabIndex = 4; this.lblWarning.Visible = false; // // lblDescription // + this.lblDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lblDescription.Location = new System.Drawing.Point(5, 66); this.lblDescription.Name = "lblDescription"; this.lblDescription.Size = new System.Drawing.Size(290, 109); - this.lblDescription.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Bottom; this.lblDescription.TabIndex = 3; // // lblCaption // + this.lblCaption.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lblCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblCaption.Location = new System.Drawing.Point(5, 48); this.lblCaption.Name = "lblCaption"; this.lblCaption.Size = new System.Drawing.Size(290, 19); - this.lblCaption.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; this.lblCaption.TabIndex = 2; this.lblCaption.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // cbxAdminTools // + this.cbxAdminTools.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.cbxAdminTools.FlatStyle = System.Windows.Forms.FlatStyle.Standard; this.cbxAdminTools.FormattingEnabled = true; this.cbxAdminTools.Location = new System.Drawing.Point(5, 27); this.cbxAdminTools.Name = "cbxAdminTools"; this.cbxAdminTools.Size = new System.Drawing.Size(290, 21); - this.cbxAdminTools.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; this.cbxAdminTools.TabIndex = 1; this.cbxAdminTools.WatermarkBehavior = DevComponents.DotNetBar.eWatermarkBehavior.HideNonEmpty; this.cbxAdminTools.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cbxAdminTools.WatermarkText = "Select Adminstrative Tool"; this.cbxAdminTools.SelectedIndexChanged += new System.EventHandler(this.cbxAdminTools_SelectedIndexChanged); + this.cbxAdminTools.Click += new System.EventHandler(this.cbxAdminTools_Click); // // label1 // @@ -291,13 +297,14 @@ namespace VEPROMS // // dtpTime // + this.dtpTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.dtpTime.CustomFormat = "HH:mm"; this.dtpTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dtpTime.Location = new System.Drawing.Point(129, 9); this.dtpTime.Name = "dtpTime"; this.dtpTime.ShowUpDown = true; this.dtpTime.Size = new System.Drawing.Size(140, 20); - this.dtpTime.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right; this.dtpTime.TabIndex = 4; // // dtpDate @@ -345,7 +352,6 @@ namespace VEPROMS // // txtResults // - //this.txtResults.AcceptsReturn = true; this.txtResults.Dock = System.Windows.Forms.DockStyle.Fill; this.txtResults.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtResults.Location = new System.Drawing.Point(0, 52); diff --git a/PROMS/VEPROMS User Interface/frmBatchRefresh.cs b/PROMS/VEPROMS User Interface/frmBatchRefresh.cs index 41911324..aafaab5f 100644 --- a/PROMS/VEPROMS User Interface/frmBatchRefresh.cs +++ b/PROMS/VEPROMS User Interface/frmBatchRefresh.cs @@ -894,6 +894,10 @@ namespace VEPROMS { pnlLater.Enabled = chkLater.Checked; } + private void cbxAdminTools_Click(object sender, EventArgs e) + { + cbxAdminTools.DroppedDown = true; // expand dropdown list if user clicks anywhere on the dropdown control + } } public class AdminTool : IComparable {