-
Feb 3rd, 2015, 05:53 PM
#1
Thread Starter
New Member
My.Settings - adding new values
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|