I already got a code, but I cant save the path of the dll that is in the listbox.
Code:
Private Sub Button6_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim INI As New INIDatei, i As Integer
INI.Pfad = My.Application******.DirectoryPath & "\savedlls.ini"
For i = 1 To Dlls.Items.Count
INI.WertSchreiben("Files", "Number of Files", Dlls.Items.Count)
INI.WertSchreiben("Files", CStr(i), Dlls.Name)
Next i
End Sub
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Dim INI As New INIDatei, max As Integer, i As Integer
INI.Pfad = My.Application******.DirectoryPath & "\savedlls.ini"
max = CInt(INI.WertLesen("Files", "Number of Files"))
For i = 1 To max
Dlls.Items.Add(INI.WertLesen("Files", CStr(i)))
Next i
End Sub
"Dll.name" this have to be changed. That the path will be saved and be loaded and something like this.
Dll is the listbox's name.
ini.wertlesen is reading the ini file.
ini.wertschreiben is writing into the file.
The first is saving the second loading at the Buttons.
In loading I can only load one of the dlls.