Hello!

How can i add a new value, from a textbox or listview, without adding manualy in my settings?

Lets say i have 2 textbox = name, surname and i want to click button "Add username" and then:

Create My.Settings.Username = "Name" from textbox1
Create My.Settings.Surname = "Surname" from textbox2

I dont want to add tose manually, because i have a lot of usernames...

I tryed this:

Dim str(2) As String
Dim itm As ListViewItem
str(0) = Username.Text
My.Settings. & UsernamePost.Text = Username.Text

str(1) = Surname.Text
My.Settings. & AdresaSop.Text = Surname.Text

But didnt work.