Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Override Click event

Status
Not open for further replies.

robertfah

Programmer
Mar 20, 2006
380
US
I've got a form that has a standard button on it with the event as shown below:
Code:
protected void sbRunCondition_Click(object sender, EventArgs e)
{
    code omitted...
}

I'd like to add another parameter to this event but how can I do that? Can I override this event? How?

Thanks a bunch!
 
override is the idea of adding functionality to an already existing member. this is simply a default event handler. you're not overriding anything.

by changing the signature of the handler you are changing what events this handler can subscribe to.

usually with this scenario you just pull the values directly from GUI controls and process.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top