Such a nice example but a few questions.
What is with the Superfluous......
Code:If MyProperty = True Then MyProperty.Property = True Else MyProperty.Property = False End IfThis just readsCode:If tsmiAlwaysOnTop.Checked = True Then
this is just pseudocode , which is less efficient.Code:If (tsmiAlwaysOnTop.Checked = True) = True Then
Code:If tsmiAlwaysOnTop.Checked = True Then tsmiAlwaysOnTop.Checked = False Me.TopMost = False Else If tsmiAlwaysOnTop.Checked = False Then tsmiAlwaysOnTop.Checked = True Me.TopMost = True End If End If
catching exception is just swallowing the error claiming we can handle any thing it is.Code:Me.TopMost = tsmiAlwaysOnTop.Checked


Reply With Quote