|
-
Aug 2nd, 2010, 07:17 PM
#1
Thread Starter
New Member
Clearing multiple text fields
I tried searching for a solution, but couldn't find anything, so if I am re-asking a common question, don't beat me too badly.
For a class, I have to create a form that allows someone to enter in the names of six students, as well as five test scores each. It also averages the scores, and displays them in a label.
What I am wondering is if there is a way to clear the text from all 36 text fields, as well as the 6 labels without having to do everything individually?
I could certainly go through, and write out txtField1.text = String.Empty 36 times, but it seems there would be a more elegant solution.
Also, if there is a way to do so, would the same would apply for putting the data entered into an array, or saving it to a file?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|