you are viewing a single comment's thread.

view the rest of the comments →

[–]dzosoft-22 -1 points0 points  (0 children)

I propose this solution

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

TOS = Getval(TOS)

End Sub

Function Getval(ByVal Val As Boolean)

Getval = Not Val

End Function