Sorry Elysia If I am a bit slow here. I am not really sure if I understand. I will explain exactly what I am doing.
I have created a new project. "Windows Forms Application".
To this I have put a "Button" and a "RichTextBox".
Now I have doubleclicked the button so I am inside the code of this button.
When I press this button, the statement written in the "RichTextBox" will be executed like the example above.
I hope this helped to understand better.
Thanks