private void Main_FormClosing(object sender, FormClosingEventArgs e) { m_Registry.WriteInteger("TextBoxHeight", TextBox.Height); m_Registry.SaveFormState(this); }