anti_hero0021
Mar 13th, 2007, 05:14 PM
I have a simple question. I'm just starting to program in the GUI for C#. My teacher wants us to output data in a multiline textbox, but I can't figure out how to do that.
For example, the program we are doing is calculating grades. The button we are clicking is supposed to output all information in to a textbox in a list format. So:
Name: Jason
Id: 1234
Average: 95
Letter Grade: A
My teacher is telling us that this needs to be in a single string like
stringVariable = name + "/r/n" +
but I know/hope that there is a better way to do this. Any help would be appreciated. Thanks,
- anti_hero0021
For example, the program we are doing is calculating grades. The button we are clicking is supposed to output all information in to a textbox in a list format. So:
Name: Jason
Id: 1234
Average: 95
Letter Grade: A
My teacher is telling us that this needs to be in a single string like
stringVariable = name + "/r/n" +
but I know/hope that there is a better way to do this. Any help would be appreciated. Thanks,
- anti_hero0021