Re: User control question
From: One Handed Man \( OHM - Terry Burns \) ("One)
Date: 07/28/04
- Next message: Cor Ligthert: "Re: Tick time"
- Previous message: Atara: "Re: Removing cursor in a text box"
- In reply to: James Ramaley: "User control question"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: User control question"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Cor Ligthert: "Re: Tick time"
- Previous message: Atara: "Re: Removing cursor in a text box"
- In reply to: James Ramaley: "User control question"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: User control question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|