Results 1 to 11 of 11

Thread: SendKeys command in a TextBox?

Threaded View

  1. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2012
    Posts
    290

    Re: SendKeys command in a TextBox?

    Quote Originally Posted by .paul. View Post
    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.
    Last edited by Jose_VB; May 3rd, 2013 at 04:32 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width