Hi Jamey,
Events are messages that exist alongside your program. Usually they arecreated by windows in response to something a user does with the mouse or keyboard, but they can also be generated by code. When an event is created, nothing will happen unless something is 'subscribing' to this event. If something is subscribing to the event, all 'subscribers' will receive a message notifying the event, and once they get time to process the event, a bit of code will run.
myButton.Click += new EventHandler( theNameOfTheMethodThatShouldRunIfThisEventIsFired );
The code above says that we want to add a subscription to myButton's Click-event. The code inside the 'theNameOfTheMethodThatShouldRunIfThisEventIsFired' method will run in response to the event.
protected void theNameOfTheMethodThatShouldRunIfThisEventIsFired(object sender, EventArgs e)
{
}
The parameters are strictly defined, and sender will be a reference to the button firing this event (you can have several different buttons using the same event method). 'e' contains any useful information that may be passed with this event, although in case of a click event there will be none. The click event simply tells you the button has been clicked.
A MouseDown/Up event is a more specialized kind of event compared to Click and will fire anytime you click a mouse button.
myButton.MouseDown += new MouseEventHandler( theMethodThatShouldRunOnMouseDown );
The code above will cause 'theMethodThatShouldRunOnMouseDown' to executewhen you click a mouse button on top of myButton.
protected void theMethodThatShouldRunOnMouseDown(object sender, MouseEventArgs e)
{
}
This method will receive a MouseEventArgs, which contains information about the position of the mouse, which buttons was clicked etc.
At last, a Click event is simply a MouseDown event followed by a MouseUp event.
There is much more to events, but this may get you started.
Good Luck