mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Enabling MinimizeBox only on lock
This commit is contained in:
parent
71b13ca6fb
commit
c7907aeba9
2 changed files with 3 additions and 0 deletions
|
|
@ -927,7 +927,9 @@ void AutoLock(bool minimize)
|
||||||
Form2 f2 = new Form2();
|
Form2 f2 = new Form2();
|
||||||
publicVar.encryptionKey = "";
|
publicVar.encryptionKey = "";
|
||||||
caretPos = customRTB.SelectionStart;
|
caretPos = customRTB.SelectionStart;
|
||||||
|
f2.MinimizeBox = true;
|
||||||
this.Hide();
|
this.Hide();
|
||||||
|
|
||||||
if (minimize == true)
|
if (minimize == true)
|
||||||
{
|
{
|
||||||
f2.WindowState = FormWindowState.Minimized;
|
f2.WindowState = FormWindowState.Minimized;
|
||||||
|
|
|
||||||
1
Crypto Notepad/Form2.Designer.cs
generated
1
Crypto Notepad/Form2.Designer.cs
generated
|
|
@ -117,6 +117,7 @@ private void InitializeComponent()
|
||||||
this.Controls.Add(this.button1);
|
this.Controls.Add(this.button1);
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
|
this.MinimizeBox = false;
|
||||||
this.Name = "Form2";
|
this.Name = "Form2";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "Crypto Notepad";
|
this.Text = "Crypto Notepad";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue