Private Sub TextBox6_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox6.KeyUp If Me.TextBox6.SelectionLength <> Me.TextBox6.Text.Length Then caricaprovincia(Me.TextBox6.Text) End If End Sub