I am making a small application that keeps track of life points for a game I play. I have most of the code assembled, but I am having problems with the subtraction part. When I subtract to 0, I want it to stop there and not pass into the negative numbers.
I'm not really sure which part of the code I should post.
Currently, I only have this (For my subtraction button):
Private Sub btn2min_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn2min.Click lblLP2.Text = lblLP2.Text - txtb2.Text End Sub
Thanks to anyone who can help, and if you need anymore information I'll post it.