|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
Hi,
I have derived a class from Button class. I've overridden the click event of my derived class. Now I want the user to use only my click event rather than he overriding it. In simple words, I dont want the user of my control to override the click event of my button class derived class Thanks in advance Regards Nauman use:
protected sealed override void OnClick(EventArgs e) in your class. Hi,
Thanks for the help. I've used sealed and stopped the user form overriding the OnClick event. But is there a way to hide the event from the event list in the property browser? And also when the user double clicks on the control it by default takes to the "mycontrol_click" in code behind. how do I stop this behavior? Regards Nauman Show quoteHide quote "Wouter van Vugt" <wout***@infosupport.com> wrote in message news:1141823196.345667.170050@z34g2000cwc.googlegroups.com... > use: > > protected sealed override void OnClick(EventArgs e) > > in your class. >
GridView TemplateColumn
Retrieving Values from Hidden Fileds Inside Web Controls on PostBa Accessible GridView ASP.NET datagrid Intercepting the DataGrid System.Web.UI.WebControls.Image control not refreshing Browse for file - on the server FormView update parameter values GridView Constituents Postback and return view |
|||||||||||||||||||||||