Reading and counting from a text box in visual studio c++ text box

im using visual studio 2010.im new to this.i have a button and a text box. i want to enter a string in the text box.eg:"hello". and if i click the button it should count the number of characters in the string and return the value..eg: in this case "hello" ,when i click the button it should count each letter and display the value "5"(string "hello" contains 5 characters).can any1 help me by sending the exact code?
Last edited on
if i click the button it should count the number of characters in the string and return the value.

You need to:
* Add a handler for the button. The OnClicked handler should read the read the text box.
* Once you've extracted the text, do your calculation.
* Write the result back to the text box.
Topic archived. No new replies allowed.