override event

  • Thread starter Thread starter Xavier Valdés
  • Start date Start date
X

Xavier Valdés

Hi all,

I'm making a class that inherist from listview one. The problem is I do not
want mybase's doubleclick
to fire but my class to handle this event. Is this possible? How? thanks a
lot,
Xavi
 
Hi all,

I'm making a class that inherist from listview one. The problem is I do not
want mybase's doubleclick
to fire but my class to handle this event. Is this possible? How? thanks a
lot,

You need to override the "OnDoubleClick" method. However, not calling
the base class' OnDoubleClick is considered "bad practice" and could
cause problems with the behavior of the control.
 
Thanks, Patrick

Patrick Steele said:
You need to override the "OnDoubleClick" method. However, not calling
the base class' OnDoubleClick is considered "bad practice" and could
cause problems with the behavior of the control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top