VB.Net: Settings in Application.Settings

  • Thread starter Thread starter ~J~
  • Start date Start date

~J~

~J~

Soldato
Joined
20 Oct 2003
Posts
7,558
Location
London
Pulling my hair out on this, must be something simple!!

Got an application setting called "EmailRecipients" with two entries as a string collection:

[email protected]
[email protected]

I'm running this code:

For Each emailRecipient As String In My.Settings.EmailRecipients
MsgBox(emailRecipient.ToString)
Next

But all it's showing is [email protected]!!

Any thoughts on what I'm doing wrong?
 
Utilise visual studio debugging features, pause the code and watch the settings variable to see what it holds at runtime, further more check what the settings variable holds after assigning the email addresses.
 
Utilise visual studio debugging features, pause the code and watch the settings variable to see what it holds at runtime, further more check what the settings variable holds after assigning the email addresses.

Did all that before posting, still no joy.
 
Back
Top Bottom