
Private Sub SaveInformation()
'Write the form "title" to section "General"
inifile.WriteValue("General", "Process ", txtText.Text)
inifile.WriteValue("General", "Quit ", chkBox1.Checked)
inifile.WriteValue("General", "ListBox", ListBox1.Items.Count)
End Sub
Private Sub LoadInformation()
'Read the form "title" of the section "General"
txtText.Text = inifile.ReadValue("General", "Process ", "")
chkBox1.Checked = inifile.ReadValue("General", "Quit ", "")
ListBox1.Items.Count = inifile.ReadValue("General", "Quit ", "")
End Sub

ListBox1.Items.Add(inifile.ReadValue("General", "Quit ", ""))
For Each Opti As String In File.ReadAllLines("Path of file") 'Reads all the lines from the File
Dim TempStr As String = Opti 'Makes a new String Temp Valu. (Maybe not needed tho :P)
TempStr.Remove(0, TempStr.IndexOf("=")) 'Removes text until it finds: = (You might have to add: TempStr.IndexOf("=") + 1
ListBox1.Items.Add(TempStr) 'Adds the Value to the listbox
Next
TempStr.Remove(0, TempStr.IndexOf("="))
TempStr = TempStr.Remove(0,TempStr.IndexOf("=") + 1)
Dim INIFile As String = System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\INI.ini"
For Each Line As String In File.ReadAllLines(INIFile)
If Not Line.Trim().StartsWith("[") And Not Line.Trim().EndsWith("]") And Line.Contains("=") Then
Dim SettingName As String = Line.Substring(0, Line.IndexOf("="))
Dim SettingValue As String = Line.Substring(Line.IndexOf("=") + 1)
ListBox1.Items.Add(SettingValue)
End If
Next
