When you create an event for any object, instead of referring to its name you can refer to it as "Self"
So in your example you want to get the text from a textbox but instead of using your textbox name you use "Self":
TextBox.Text
Self.Text
I hope this helps
Please ask if you have any question