Here is what I have for code but it still does not work. Any help would be
greatly appreciated:
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
End
End Sub
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged,
RadioButton2.CheckedChanged
Call settings()
End Sub
Public Sub settings()
If RadioButton1.Checked = True Then
Me.Text = "Imperial"
My.Settings.Imperial = True
ElseIf RadioButton2.Checked = True Then
Me.Text = "Metric"
My.Settings.Metric = True
End If
My.Settings.Save()
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Call settings()
End Sub
End Class
"Scuba Rob" wrote:
OK, thanks Homer. I'll try this tomorrow
"Homer J Simpson" wrote:
"Scuba Rob" <Sc******@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
I save the new settings after clicking the other radio button. After
clicking the radio button once the labels.text would update like it is
supposed to but neither radio button would show as being selected. The
second click would show the selected radio button and upon the next
startup would correctly show as being correct.
Does this make any more sense? I'll post the code if you wish to see it.
Looks like there is something wrong with the radio button setup in that
case. Try creating a new solution with just the radio buttons and see if
they work OK.