private void Main_FormLoad(object sender, EventArgs e) { m_Registry.LoadFormState(this); TextBox.Height = m_Registry.ReadInteger("TextBoxHeight", TextBox.Height); Expression.Text = m_Registry.ReadString("Expression", ""); }