I've tried it in my program (set validation not exceed 100)
====================================
Private mlVARIABLE As Integer
Public Property _mlVARIABLE() As Integer
Get
Return mlVARIABLE
End Get
Set(ByVal Value As Integer)
If Value > 100 Then
Throw New Exception("tidak kurang dari 100")
Else
mlVARIABLE = Value
End If
End Set
End Property
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
mlVARIABLE = 200
mSomeVariable = 153
End Sub
====================================
But when I assign mlVARIABLE = 200, it just goes through without any
validation message. Why ?