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

You miss to save the settings.

My.Settings.Save() will do the tric.

Hope this helps.

Jump to Post

All 2 Replies

Cheers

Be a part of the DaniWeb community

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