Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27373

[RESOLVED] My.Settings.Item()

$
0
0
I have a tabControl full of check boxes that I am using in three way mode to keep space minimum from Radio buttons. When a check box is clicked it sets a Tag setting of a 1, 0, or sets a custom string input to the user by a input box. I have a submit button that I am calling these check box .Tag commands from with a For Each loop and if is a 1 should call from My.Settings.Item(Chbox.Name) for example. I can get it to pull the first item in the My.Settings during the For loop, but will not pull any other check boxes. I know my IF statements are all working, as is the code. The issue seems to be with My.Settings.Item() command, and not responding past the first item in the loop. Below is the code I am using for this function. Is there maybe something I am missing? I had planned on using the integrated My.Settings to avoid having to have a separate database for the check box narratives I am using in this program.

Dim Chbox As Object
For Each Chbox In Safety.Controls
If TypeOf Chbox Is CheckBox Then
If Chbox.Tag = "1" Then
tbSafety.Text += My.Settings.Item(Chbox.Name)
ElseIf Chbox.Tag = "0" Then
ElseIf Chbox.Tag = "" Then
Else
tbSafety.Text += (Chbox.Tag)
End If
End If
Next Chbox

Viewing all articles
Browse latest Browse all 27373

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>