C# form_load read ini, if and then? load something

May 24 2010 10:49 AM
Hello again
i made alternate way to read and write..but im stucked, plz help

this is how is reading done:
 public void Form3_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            IniFile ini = new IniFile(".\\language.ini");
            ini.IniWriteValue("Language", "Lang", name.Text);

        public void Form3_Load(object sender, System.EventArgs e)
        {
            IniFile ini = new IniFile(".\\language.ini");
            name.Text = ini.IniReadValue("Language", "Lang");         

        }

how to make it load like something like this?

if name.Text = ("enu")
to load this:
        private void flagENG_Click(object sender, EventArgs e)
        {
            name.Text = ("enu");
            flagENG.Visible = false;
            this.BackgroundImage = Properties.Resources.status_box_engON;
        }

or like
if name.Text = ("enu")
     
      flagENG.Visible = false;
            this.BackgroundImage = Properties.Resources.status_box_engON;
if name.Text = ("deu")
            flagDEU.Visible = false;
            this.BackgroundImage = Properties.Resources.status_box_deuON;

i dont know how to write this code exacly, help please.

Answers (1)