Hello everyone,

This is my first time on this forum but I hope i can someday become an accomplished community member. Anyways, I have a c# problem. Here's a quick description.

Based on user input, i create different text boxes or buttons inside a function. Now i want to be able to detect when the data is altered within the program but the problem is that these text boxes or buttons are in the function's scope and not in global scope.

I am using Visual Studio's C# 2008 which allows me to double clicked buttons already created on the form and generate the following:

Code:
private void button1_Click(object sender, EventArgs e)
I don't know how else to handle button_clicks or textbox-altered events outside of double clicking the object on the C# form interface. Can you educate me on how I can handle these events in code and not rely on Visual Studio's C# interface?