Hello,
Use a NumericUpDown control or if using a TextBox increment the value via a button click.
Private Sub IncrementButton_Click(sender As Object, e As EventArgs) _
Handles IncrementButton.Click
Dim value As Integer = 0
If Integer.TryParse(TextBox1.Text, value) Then
TextBox1.Text = (value + 1).ToString()
End If
End Sub
Or even the leave event
Private Sub TextBox1_Leave(sender As Object, e As EventArgs) _
Handles TextBox1.Leave
Dim value As Integer = 0
If Integer.TryParse(TextBox1.Text, value) Then
TextBox1.Text = (value + 1).ToString()
End If
End Sub
Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via
my MSDN profile but will not answer coding question on either.
NuGet BaseConnectionLibrary for database connections.
StackOverFlow
