From c1305c3712332ef267a704804acfffb526090c33 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Fri, 10 Jun 2022 21:05:36 -0500 Subject: [PATCH] sort check box auto sizing --- .../Forms/SelectDialogForm.Designer.cs | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/CreamInstaller/Forms/SelectDialogForm.Designer.cs b/CreamInstaller/Forms/SelectDialogForm.Designer.cs index f77be85..06f245c 100644 --- a/CreamInstaller/Forms/SelectDialogForm.Designer.cs +++ b/CreamInstaller/Forms/SelectDialogForm.Designer.cs @@ -31,9 +31,9 @@ namespace CreamInstaller { this.acceptButton = new System.Windows.Forms.Button(); this.groupBox = new System.Windows.Forms.GroupBox(); - this.sortCheckBox = new System.Windows.Forms.CheckBox(); this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); this.allCheckBox = new System.Windows.Forms.CheckBox(); + this.sortCheckBox = new System.Windows.Forms.CheckBox(); this.cancelButton = new System.Windows.Forms.Button(); this.loadButton = new System.Windows.Forms.Button(); this.saveButton = new System.Windows.Forms.Button(); @@ -72,18 +72,6 @@ namespace CreamInstaller this.groupBox.TabStop = false; this.groupBox.Text = "Choices"; // - // sortCheckBox - // - this.sortCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.sortCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.sortCheckBox.Location = new System.Drawing.Point(105, 245); - this.sortCheckBox.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); - this.sortCheckBox.Name = "sortCheckBox"; - this.sortCheckBox.Size = new System.Drawing.Size(92, 19); - this.sortCheckBox.TabIndex = 2; - this.sortCheckBox.Text = "Sort By Name"; - this.sortCheckBox.CheckedChanged += new System.EventHandler(this.OnSortCheckBoxChanged); - // // selectionTreeView // this.selectionTreeView.BackColor = System.Drawing.SystemColors.Control; @@ -124,6 +112,19 @@ namespace CreamInstaller this.allCheckBox.Text = "All"; this.allCheckBox.CheckedChanged += new System.EventHandler(this.OnAllCheckBoxChanged); // + // sortCheckBox + // + this.sortCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.sortCheckBox.AutoSize = true; + this.sortCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.sortCheckBox.Location = new System.Drawing.Point(105, 245); + this.sortCheckBox.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.sortCheckBox.Name = "sortCheckBox"; + this.sortCheckBox.Size = new System.Drawing.Size(104, 20); + this.sortCheckBox.TabIndex = 2; + this.sortCheckBox.Text = "Sort By Name"; + this.sortCheckBox.CheckedChanged += new System.EventHandler(this.OnSortCheckBoxChanged); + // // cancelButton // this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));