J
James Ramaley
I have created a VB.NET User Control which inherits from TextBox. I
have a general question regarding how functionality should be
overwritten:
I can either write a method which handles an event:
function MyControl_Enter(...) handles MyControl.Enter
or I can overwrite the relevant virtual method:
function overwrites onEnter(...)
Are these two ways of doing the same thing? When should I use the
first approach, and when the other?
Thanks for helping me understand this.
have a general question regarding how functionality should be
overwritten:
I can either write a method which handles an event:
function MyControl_Enter(...) handles MyControl.Enter
or I can overwrite the relevant virtual method:
function overwrites onEnter(...)
Are these two ways of doing the same thing? When should I use the
first approach, and when the other?
Thanks for helping me understand this.