Sunday, August 2, 2009

What is the coding for programming C#.net?

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.

What is the coding for programming C#.net?
can u give more explanation? ur question is not clear
Reply: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.


No comments:

Post a Comment