hello. I have a 1 button namely "Increment" in form 1 and a textbox in form 2
I use this code to increment by and hide the form
Dim i As Integer = 0
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
form2.TextBox1.Text = CStr(i)
End Sub
Private Sub Increment_Click(sender As System.Object, e As System.EventArgs) Handles Increment.Click
i = i + 1
form2.TextBox1.Text = CStr(i)
End Sub`
and i have a button name "Decrement" that when i click it it decrement by 1Form2.textbox1.text = Val(Form2.textbox1.Text - 1)
my problem is this, after i click the decrement button it decrement but when i click the increment button it increment by 2. i dont know what will i do . help me thanks :D