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

Recommended Answers

All 2 Replies

Cheers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.