Connecting Tech Pros Worldwide Forums | Help | Site Map

How to get the 2005 IDE to auto-generate the template code for an Overrideable method?

Jack
Guest
 
Posts: n/a
#1: Apr 29 '07
Hi,

I want to override an overridable method in some base class from my
class. It works fine if I manually code the method (as one would
expect), but I want the IDE to auto-generate the template code for me
so I don't have to type all of it in. I'm sure this is possible.

Apparently you can do it from the class designer somehow by openning
the class designer, drilling up through the inheritence heirarchy,
choosing the method ( eg. OnPaint(..) ) and then right-clicking on it
and select Add->Override. But when I right-click I don't get the
'Override' option.

I know from the editor, you can start to type the keywords: 'Protected
Overrides' and then the IDE will kick-in with the avaliable selection.
Here you can scroll down the list and hit ENTER on the method you
want. This works fine-and-dandy, but is there another way?

Thanks,
Jack.


Closed Thread