Need to call methods in the base class?

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

I implemented Drag Drop in a RichTextbox by adding events to my code.

If I were doing it in C# I would instead override The OnDrag* methods and in
my methods call the base.OnDrag*

In my events I do not call any base (MyBase) methods. Should I be calling
something???


Thanks
 
SamSpade said:
I implemented Drag Drop in a RichTextbox by adding events to my
code.

If I were doing it in C# I would instead override The OnDrag* methods
and in my methods call the base.OnDrag*

You can do the same in VB.
In my events I do not call any base (MyBase) methods. Should I be calling
something???

No, the event is raised /from/ the base class.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
* " SamSpade said:
I implemented Drag Drop in a RichTextbox by adding events to my code.

If I were doing it in C# I would instead override The OnDrag* methods and in
my methods call the base.OnDrag*

In my events I do not call any base (MyBase) methods. Should I be calling
something???

In the event handlers -- no. In the 'On*' methods -- yes, if you want
the base class's implementation of the method to be executed.
 
Back
Top