0

Hi I am trying to save settings on close I have the following code

Private Sub MainSystem_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing

        My.Settings.firstRun = Me.RadCheckBoxFirstLoad.Checked = True

    End Sub

and on form load

If My.Settings.firstRun = False Then
            RadPanelWelcome.Show()
        Else
            RadPanelWelcome.Hide()
        End If

I have edited the control properties of the checkBox and bound the checkBox with settings value under application settings
when I load the form the checkBox is always checked = false ?

what have I done wrong?

thanks

M

2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by mikejs
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.