From 460a3dc5f79b9922eb5c023dacee1f45c818df34 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 12 Feb 2017 00:53:03 +0300 Subject: [PATCH] disable window maximize and change border style --- main.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.cs b/main.cs index 0338c03..efc1499 100644 --- a/main.cs +++ b/main.cs @@ -52,6 +52,13 @@ namespace DefectRand this.ClientSize = new System.Drawing.Size(288, 266); this.Controls.Add(this.textField); this.Controls.Add(this.randButton); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.MaximizeBox = false; + this.MinimizeBox = false; + // TODO: Change icon in taskbar without resx file + // this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + // Icon appIcon = new Icon("./app.ico"); + // this.Icon = ((System.Drawing.Icon)(appIcon)); this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "DefectRand - 1.0";