This is what i have tried but for somereason it does not seem to work.
The code below is how i have done it, not sure if it is correct.

All the variables and data strings are all defined in a Module.vb named Data as most of the forms in my application need to read there values and use any data set in some strings.

'AddControlPanel' is defined in the Module.vb as

Public AddControlPanel As Integer = 0


' Main Form Page


Public Class Tweaks
Inherits System.Windows.Forms.Form

Public Sub Checkstatus()
If AddControlPanel = 1 Then
AddConPanel.Checked = True

End If

End Sub


Public Sub AddConPanel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddConPanel.CheckedChanged

If AddConPanel.Checked = True Then
AddControlPanel = 1

Else
If AddConPanel.Checked = False Then
AddControlPanel = 0
End If
End If


End Sub

End Class