After weeks and days finding the solution I already found this:
I'll just leave this here for anyone seeking the same solution as mine.
This is now the code I'm using for the
NUD_VALUECHANGED EVENT:
Shered num As Integer = 100
Private Sub numCategory_ValueChanged(sender As Object, e As EventArgs) Handles numCategory.ValueChanged
lblpoints.Text = (num - numCategory.Value).ToString
End Sub
Below is the code for my
SAVE button because my project is connected to a database.
What it does is, it retains the value of the
LABEL and changed the value of the
NUD to
0 again while the
LABEL stays to whatever value it has before the
SAVE button is clicked
Static oldvalue As String
oldvalue = lblpoints.Text
numCategory.Value = 0
lblpoints.Text = oldvalue
num = Convert.ToInt32(oldvalue)
and for my
CLEAR button:
If the user just want to revert the NUD to it's default value.
numCategory.Value = numCategory.Minimum