Re: User control question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: One Handed Man \( OHM - Terry Burns \) ("One)
Date: 07/28/04


Date: Wed, 28 Jul 2004 08:22:11 +0100

When you create an event handler, you are 'Creating' a method which handles
an event, in otherwords you register this method address to be fired when a
certain event occurs. You are not overriding anything and you dont need to.

What changes are you trying to make ?

-- 
OHM ( Terry Burns )
 . . .  One-Handed-Man . . .
Time flies when you don't know what you're doing
"James Ramaley" <jramaley@iname.com> wrote in message
news:f84e229a.0407272204.25be9fcc@posting.google.com...
> 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.


Relevant Pages

  • Re: Is this exploitable?
    ... you never overwrite a register, so you never 'overwrote' ecx, you may ... have however overwritten a memory address which is later put into ecx. ... ecx is a register, much like the other general registers, it just holds ... > See the gdb dump: ...
    (Vuln-Dev)
  • overwrite private method... (of wxColumnSorterMixin class)
    ... Is there a posibility to overwrite a private method (one that starts with ... overwrite the __OnColClick event handler to behave on my way: ... the __OnColClick method, so I cannot receive the event anymore. ...
    (comp.lang.python)
  • Re: overwrite private method... (of wxColumnSorterMixin class)
    ... > Is there a posibility to overwrite a private method (one that starts with ... > class name to have an obtured visibility, so maybe it's a trick here... ... > event handler is the key. ...
    (comp.lang.python)
  • Re: Overwriting event handler
    ... Button control and, after a security level checking, i want to keep or ... overwrite the Click event handler. ... subscribing and unsubscribing, and you can only unsubscribe with ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: how can I know last return value?
    ... Is there any register which saves the last return value after executing some ... The return value is passed in a register. ... It's processor specific what regster is used. ... You will find other register on the other architectures and please keep in mind that the code after the function call may overwrite the register content. ...
    (microsoft.public.windowsce.platbuilder)