From 52fb020bb843f054bf1459f2bf8041e83ae0a584 Mon Sep 17 00:00:00 2001 From: PaRcS Date: Mon, 4 May 2020 22:30:07 +0200 Subject: [PATCH] Added ability to resize the form. (Version 1.2.0.0) --- .../PistolWhipModSelector/MainForm.Designer.cs | 10 +++++++++- .../PistolWhipModSelector/MainForm.resx | 9 +++++++++ .../PistolWhipModSelector/PistolWhipModSelector.csproj | 2 +- .../PistolWhipModSelector/Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/PistolWhipModSelector/PistolWhipModSelector/MainForm.Designer.cs b/PistolWhipModSelector/PistolWhipModSelector/MainForm.Designer.cs index 2acaed8..ff5b912 100644 --- a/PistolWhipModSelector/PistolWhipModSelector/MainForm.Designer.cs +++ b/PistolWhipModSelector/PistolWhipModSelector/MainForm.Designer.cs @@ -48,6 +48,8 @@ private void InitializeComponent() // // OriginalSongNamesListBox // + this.OriginalSongNamesListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); this.OriginalSongNamesListBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.OriginalSongNamesListBox.FormattingEnabled = true; this.OriginalSongNamesListBox.ItemHeight = 20; @@ -88,6 +90,9 @@ private void InitializeComponent() this.CustomSongsDataGridView.AccessibleRole = System.Windows.Forms.AccessibleRole.None; this.CustomSongsDataGridView.AllowUserToAddRows = false; this.CustomSongsDataGridView.AllowUserToDeleteRows = false; + this.CustomSongsDataGridView.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.CustomSongsDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.CustomSongsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.CustomSongsDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { @@ -180,6 +185,7 @@ private void InitializeComponent() // // Creator // + this.Creator.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.Creator.AutoSize = true; this.Creator.Location = new System.Drawing.Point(668, 440); this.Creator.Name = "Creator"; @@ -189,6 +195,7 @@ private void InitializeComponent() // // linkLabel1 // + this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.linkLabel1.AutoSize = true; this.linkLabel1.Location = new System.Drawing.Point(12, 440); this.linkLabel1.Name = "linkLabel1"; @@ -200,6 +207,7 @@ private void InitializeComponent() // // CopyStateLabel // + this.CopyStateLabel.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.CopyStateLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.CopyStateLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.CopyStateLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); @@ -227,7 +235,7 @@ private void InitializeComponent() this.Controls.Add(this.OriginalSongShowNameCheckBox); this.Controls.Add(this.OriginalSongShowIDCheckBox); this.Controls.Add(this.OriginalSongNamesListBox); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MinimumSize = new System.Drawing.Size(816, 500); this.Name = "MainForm"; this.Text = "Pistol Whip Custom Songs"; this.Load += new System.EventHandler(this.MainForm_Load); diff --git a/PistolWhipModSelector/PistolWhipModSelector/MainForm.resx b/PistolWhipModSelector/PistolWhipModSelector/MainForm.resx index 6539e12..690d71e 100644 --- a/PistolWhipModSelector/PistolWhipModSelector/MainForm.resx +++ b/PistolWhipModSelector/PistolWhipModSelector/MainForm.resx @@ -126,4 +126,13 @@ True + + True + + + True + + + True + \ No newline at end of file diff --git a/PistolWhipModSelector/PistolWhipModSelector/PistolWhipModSelector.csproj b/PistolWhipModSelector/PistolWhipModSelector/PistolWhipModSelector.csproj index a796d58..bb4fc51 100644 --- a/PistolWhipModSelector/PistolWhipModSelector/PistolWhipModSelector.csproj +++ b/PistolWhipModSelector/PistolWhipModSelector/PistolWhipModSelector.csproj @@ -24,7 +24,7 @@ false true 0 - 1.1.0.0 + 1.2.0.0 false true true diff --git a/PistolWhipModSelector/PistolWhipModSelector/Properties/AssemblyInfo.cs b/PistolWhipModSelector/PistolWhipModSelector/Properties/AssemblyInfo.cs index c295ee1..4cc6f3d 100644 --- a/PistolWhipModSelector/PistolWhipModSelector/Properties/AssemblyInfo.cs +++ b/PistolWhipModSelector/PistolWhipModSelector/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.2.0.0")] +[assembly: AssemblyFileVersion("1.2.0.0")]