English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

when i typing in textBox and the message that i typed in the textBox will appear directly in 1 by 1 of alphabetic in Label.

2007-03-19 00:33:45 · 2 answers · asked by vc_chok 2 in Computers & Internet Programming & Design

i have a TEXTBOX and a LABEL in my form.
when i,m typing ABCDEF in my TEXTBOX in the time my LABEL will display ABCDEF directly WITHOUT clicking any button.

example : i typing in my TEXTBOX (AB) and in my LABEL (AB).

if i adding GF in my TEXT BOX then in my LABEL will be (ABGF)

if i delete FGB in my TEXT BOX then in my LABEL will be (A)

2007-03-19 01:29:35 · update #1

2 answers

can u give more explanation? ur question is not clear

2007-03-19 00:52:43 · answer #1 · answered by abd 5 · 0 0

Click on your textbox control and click on the property for it and then look for a lighting icon on the property window. Select the icon and look for the event called OnTextChanged. Double click the event and it will generate a method in your code.

Then add the following code inside the code area of the new method:

MyLabel.Text = MyTextBox.Text;

Note: MyLabel is the name given to your label control and MyTextBox is the name givien to your TextBox control on your form.

2007-03-19 09:49:39 · answer #2 · answered by peacemaker 2 · 1 0

fedest.com, questions and answers