I'm working on a Windows Form Application in Visual Studio 2010, and I need to know how to call a function (my update function) whenever the form detects an event, such as a button being clicked. I need it to do this so that whenever the user clicks a button or types some text, it will update the information in my class.