



If closebox.Checked = True Then
Me.Close()
End If

If closebox.Checked = True Then
Me.Close()
End If
Dim x as integer = Textbox1.Text 'if x is a text instead of a number it will cause an error, therefore we catch it Try Timer1.Interval = X Catch ex as exception 'what happens when it appears Msgbox(ex) Label1.Text = "Something went wrong." End try