Enabling MinimizeBox only on lock

This commit is contained in:
Sigmanor 2016-01-26 19:08:17 +02:00
parent 71b13ca6fb
commit c7907aeba9
2 changed files with 3 additions and 0 deletions

View file

@ -927,7 +927,9 @@ void AutoLock(bool minimize)
Form2 f2 = new Form2();
publicVar.encryptionKey = "";
caretPos = customRTB.SelectionStart;
f2.MinimizeBox = true;
this.Hide();
if (minimize == true)
{
f2.WindowState = FormWindowState.Minimized;

View file

@ -117,6 +117,7 @@ private void InitializeComponent()
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Crypto Notepad";