TextBox1.TextChanged event p

0
0

Hi,

To simplify the problem, I simulated the following scenario.
I have two texbox on a form. On the TextBox1_TextChanged event I have entered the following code:

Private Sub TextBox1_TextChanged (sender As Object, and As EventArgs) Handles TextBox1.TextChanged
TextBox2.Text = TextBox1.Text
End Sub

I noticed that the textbox2 updates only when the textbox1 loses focus.
Instead, I would like textbox2 text to be updated as I type characters on textbox1.

On a windosform application it works correctly.

 

Thanks in advance

  • You must to post comments
0
0

Hi Frank,

I followed your suggestion and I solved the problem

Thank you very much

  • You must to post comments
0
0

Hi Angelo,

please use the KeyDown event instead of the TextChanged event.

Hope that helps.

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.