Makes a method to print events to text box