How to set tetxbox change automatically

  • Thread starter Thread starter Ivan V via DotNetMonster.com
  • Start date Start date
I

Ivan V via DotNetMonster.com

Dear All:

I have this one stupid that I cannot solve lately. It's all about the
textbox. For instance, I have 2 textbox, one is called A and the other is
called B. First, I had to input any value into A, then when the cursor is in
B, the text in it will automatically change to the the same as A. How can I
do that? I can only make B chnage right away after I input A, but I cannot
make it if I want to tab to B first, then it chnage automatically. Thanks for
all!

Best rgds,
Ivan
 
Ivan,

See for that the Enter event (of textbox2)

I hope this helps,

Cor
 
Ivan
What do u mean about the Enter event????
Private Sub TextBox2_Enter(ByVal sender _
As Object, ByVal e As System.EventArgs) Handles TextBox2.Enter
TextBox2.Text = TextBox1.Text
End Sub

I hope this helps,

Cor
 
Dennis,
What if the user uses the "Tab" key to go to a different control?
--
I think that I understand you, however how is this related to the question?

Cor
 
Thank you Cor, it works just what I need to be!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top