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(); } - - } }