If form2 shows when you click a button in form1 then you should then save the radiobutton.checked when form2 is closing... That way every time the form2 closes it'll edit RadBtnTip...
Something like this I mean:
vb.net Code:
Private Sub Form2_FormClosing _ (ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) _ Handles Me.FormClosing My.Settings.Radio1 = RadioButton1.Checked My.Settings.Radio2 = RadioButton2.Checked End Sub Private Sub Form2_Load _ (ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles MyBase.Load RadioButton1.Checked = My.Settings.Radio1 RadioButton2.Checked = My.Settings.Radio2 End Sub
Radio1 and Radio2 are declared as booleans in the project settings, and the default value for both of them is set to false...
This code snippet worked for me, try it out![]()





Reply With Quote