diff --git a/Form1.Designer.cs b/Form1.Designer.cs index 28ace66..3f667b3 100644 --- a/Form1.Designer.cs +++ b/Form1.Designer.cs @@ -116,6 +116,7 @@ private void InitializeComponent() this.label6.Size = new System.Drawing.Size(94, 89); this.label6.TabIndex = 5; this.label6.Text = "S"; + this.label6.Click += new System.EventHandler(this.label6_Click); // // label7 // @@ -221,6 +222,7 @@ private void InitializeComponent() this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.MinimumSize = new System.Drawing.Size(440, 0); this.Name = "Form1"; this.ShowInTaskbar = false; this.Text = "Todue"; diff --git a/Form1.cs b/Form1.cs index 216f6f9..849fd31 100644 --- a/Form1.cs +++ b/Form1.cs @@ -242,6 +242,18 @@ public void SaveTodoList() Settings.Default.Save(); } } + + private void label6_Click(object sender, EventArgs e) + { + if (this.FormBorderStyle == FormBorderStyle.None) + { + this.FormBorderStyle = FormBorderStyle.Sizable; + } + else if (this.FormBorderStyle == FormBorderStyle.Sizable) + { + this.FormBorderStyle = FormBorderStyle.None; + } + } } [Serializable]