From 5b0bd204df096acd7c50e1304a8b5ccbdec69bf2 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 11 Nov 2019 20:54:03 +0200 Subject: [PATCH] Fixed "Password Generator" window blinking in upper left corner of the screen --- Crypto Notepad/PasswordGeneratorFrom.Designer.cs | 3 +-- Crypto Notepad/PasswordGeneratorFrom.cs | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Crypto Notepad/PasswordGeneratorFrom.Designer.cs b/Crypto Notepad/PasswordGeneratorFrom.Designer.cs index 4f45a0c..155972e 100644 --- a/Crypto Notepad/PasswordGeneratorFrom.Designer.cs +++ b/Crypto Notepad/PasswordGeneratorFrom.Designer.cs @@ -150,9 +150,8 @@ private void InitializeComponent() this.Name = "PasswordGeneratorFrom"; this.ShowIcon = false; this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.Text = "Password Generator"; - this.Shown += new System.EventHandler(this.PasswordGeneratorFrom_Shown); + this.Load += new System.EventHandler(this.PasswordGeneratorFrom_Load); this.ResumeLayout(false); this.PerformLayout(); diff --git a/Crypto Notepad/PasswordGeneratorFrom.cs b/Crypto Notepad/PasswordGeneratorFrom.cs index 4b66df5..2e61bb0 100644 --- a/Crypto Notepad/PasswordGeneratorFrom.cs +++ b/Crypto Notepad/PasswordGeneratorFrom.cs @@ -67,11 +67,9 @@ private void PasswordLengthTextBox_KeyPress(object sender, KeyPressEventArgs e) } } - private void PasswordGeneratorFrom_Shown(object sender, EventArgs e) + private void PasswordGeneratorFrom_Load(object sender, EventArgs e) { CenterToParent(); } - - } }