Hi John,
There are several ways to add an event:
1. Double click the control: only for the default event, such as
Button_Click, DropDownList_SelectedIndexChanged,
DataGrid_SelectedIndexChanged, and so on.
2. In Page Design View, select control. Then in Properties window click
events tab (Flash sign), select an event and double click it.
3. In InitializeComponent, type controlName.eventName += (Tab Key twice)
HTH
Elton Wang
"John" wrote:
how to add an event click to button in C# using visual studio 2003
i know i can double click on the button
but is there any other way through the code?