Exemple #1
0
        private void Child_Load(object sender, EventArgs e)
        {
            Cl_ini ini = new Cl_ini("my.ini");

            try
            {
                Width  = Convert.ToInt32(ini.Read("FWidth"));
                Height = Convert.ToInt32(ini.Read("FHeight"));
            }

            catch { };
        }
Exemple #2
0
        private void Child_FormClosing(object sender, FormClosingEventArgs e)
        {
            string s   = richTextBox1.Text;
            Cl_ini ini = new Cl_ini("my.ini");

            ini.Write("F_Width", Convert.ToString(this.Size.Width));
            ini.Write("F_Max_Width", Convert.ToString(this.MaximumSize.Width));
            ini.Write("F_Min_Width", Convert.ToString(this.MinimumSize.Width));
            ini.Write("F_Height", Convert.ToString(this.Size.Height));
            ini.Write("F_Max_Height", Convert.ToString(this.MaximumSize.Height));
            ini.Write("F_Min_Height", Convert.ToString(this.MinimumSize.Height));
            ini.Write("RB_Width", Convert.ToString(richTextBox1.Size.Width));
            ini.Write("RB_Height", Convert.ToString(richTextBox1.Size.Height));
            ini.Write("RB_Max_Height", Convert.ToString(richTextBox1.MaximumSize.Height));
            ini.Write("RB_Max_Width", Convert.ToString(richTextBox1.MaximumSize.Width));

            if (MyFName != "")
            {
                ini.Write("Pathtext", MyFName);
            }
        }