Need Help

Okk i would be very genorous if someone could tell me how to make it so i can click a button and make it put text to textbox for example (if i had coded it to say hi once i clicked that button it would add it to my textbox)