I have a method which displays 'Hello'. Every time I call the method, it needs to display 'Hello' in a new line of the text box. I'm not able to do that. I only get one 'Hello' which happens to be the third called method's result. How can I get 'Hello' 3 times, in different lines in the text box when I call my method 3 times.
Example:
Expand|Select|Wrap|Line Numbers
- myMethod("Hello", 5==5);
- myMethod("Hello", 5==5);
- myMethod("Hello", 5==5);
- private void myMethod(string p, bool p_2)
- {
- textBox1.Text = (p + p_2);
- }
Regards..