I am trying to use this to edit an ini, but I cannot seem to get the code to add the section of the ini file into the RichTextbox.
if (myIni.GetSection(String.Format("[{0}]", comboBox1.SelectedItem.ToString().ToUpper())) != null);
{
mySection = new IniFile.IniSection(myIni, String.Format("{0}", comboBox1.SelectedItem.ToString().ToUpper()));
foreach (IniFile.IniSection.IniKey key in mySection.Keys)
{
richTextBox1.AppendText(String.Format("{0}={1}{2}", key.Name, key.Value, Environment.NewLine));
}
}
I don't know what is wrong with my code.
You can use the old existing ini calls from windows:
...