Reputation: 72672
How to use a variable variable name in Visual Basic (.Net)?
dim test as String
test = "mysetting"
My.Settings.{test} = "something"
Which should be the same as doing:
My.Settings.mysetting = "something"
Upvotes: 3
Views: 1817