August 2003
Beginner
600 pages
12h 55m
English
Calling a method is fairly simple. However, just as methods that return values are declared differently from methods that don't, calling these two types of methods differs as well. You're first going to write code to call the two methods you declared as void (methods that don't return values). Double-click the Draw Ellipse button to access its Click event and take a look at the event declaration:
private void btnDrawEllipse_Click(object sender, System.EventArgs e)
{
}
As you might have noticed, event handlers are methods. The only real difference is that event methods are called automatically in response to the user doing something, rather than being called by code you write. In this case, the btnDrawEllipse_Click() event is ...
Read now
Unlock full access