Quote Originally Posted by JuggaloBrotha View Post
stlaural, you could just do Button1.PerformClick() or if you prefer calling the method directly pass it an EventArgs.Empty instead of Nothing.
Code:
   1.
      Public Class Form1
   2.
          Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
   3.
              MessageBox.Show("Button1 has been clicked!")
   4.
          End Sub
   5.
       
   6.
          Private Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
   7.
              If TextBox1.Text.Length >= 10 Then
                  Button1.PerformClick()
                  'Or:
                  Button1_Click(Button1, EventArgs.Empty)
   9.
              End If
  10.
          End Sub
  11.
      End Class
Yeah, that would be cleaner. I tested quite fast as I'm at work
thanks JuggaloBrotha