Apologies if I'm being dumb, but can anyone tell me if there's any way the VS IDE makes it any easier to override a method (c# or vb).
At the moment I'm having to find the method signature, copy it in and override it by hand.
I'm sure that somewhere I found a way of getting the IDE to create the override for me, but maybe I dreamt it.
It would just save a lot of typing and looking things up, especially when inheriting from a system class or an external class library.
Ta,
LJ

Is there a 'wizard' for overriding a method or property
Enrique0210
The C# IDE will autocomplete an override. Try this:
public
class A{
protected virtual void foo() { }
} class B : A
{
public override //type space here
}
When you type a space after the override, we will bring up a list of methods to override in the completion list. Choose foo() and we will generate:
protected
override void foo(){
base.foo();
}
HTH,
Karen