Program Plan Start Visual Studio or Visual Studio Express Cr
Program Plan: Start Visual Studio (or Visual Studio Express). Create a new project and name it as WordCoun Add a new form Form-Word in WordCount project and add TextBox name it as txtString. TextBox is used to read the values from the user to enter String that uses to count the number of words and display in a MessgeBox. âc Add Button name it as btnWordCount to the Form_Word. On click event of the button write the logic to display number of words in a string entered in Textbox. âc Designed Form is as shown below: m Form_Word in WordCount project and ad TextBox Display Word Count Enter String To Display Number of words txtWordCount Word Count btn WordCount
Solution
Below is the code which you can use for counting the number of words in the textbox:-
}
