
Originally Posted by
.paul.
do you have Option Strict on?
where do you declare CantidadJugadas? it needs to be declared at form level to retain it's value
Option strict is off.
I declare it in a module
Code:
Public CantidadJugadas As Integer
I've tried to do the same task, but when I press a button a number is entered into the system. The only thing I do here is to create integer random numbers instead of reading them from the text file.
Code:
Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click
TEXTBOX_NumeroSalido.Text = Int(Rnd() * 37)
TEXTBOX_NumeroSalido.Focus()
SendKeys.Send("{ENTER}")
End Sub
This piece of code works. Now I'm going to see why in the automated system it doesn't works.