Basically for a while now if i wanted to set a chks setting i would do this..
vb Code:
#Region "Properties" '//Gets or sets a value that indicates if should close to tray. Public Property ShouldCloseToTray() As Boolean Get Return chkCloseToTray.Checked End Get Set(ByVal value As Boolean) chkCloseToTray.Checked = value End Set End Property #End Region Private Sub chkCloseToTray_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkCloseToTray.CheckedChanged My.Settings.CloseToTray = ShouldCloseToTray End Sub
But thats a lot more noise then doing it this way
vb Code:
Private Sub chkCloseToTray_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkCloseToTray.CheckedChanged My.Settings.CloseToTray = chkCloseToTray.checked End Sub
whats the pros cons and which way should i be doing it???




Reply With Quote