I have a school assignment that requires me to create a class library. The form for this solution has a text box that you can type anything you wish in. You can then push a button and have four different labels show how many characters, words, sentences, and paragraphs the text box contains. Another button allows you to open any .txt file and give the same type of results. All calculations are to be done in the seperate class we create.
I was able to get this to work properly with the one that opens a .txt file. My problem is... I can't seem to figure out how to get the class library I created to know what's in the text box on the main form. In other words, how do I pass the information from the textbox in frmMain to the other class (named StringProcessor)? Am I explaining this clearly?
I was able to get this to work properly with the one that opens a .txt file. My problem is... I can't seem to figure out how to get the class library I created to know what's in the text box on the main form. In other words, how do I pass the information from the textbox in frmMain to the other class (named StringProcessor)? Am I explaining this clearly?