Auto-creation of Interface members

  • Thread starter Thread starter Brian Mitchell
  • Start date Start date
B

Brian Mitchell

What's the secret to getting the text editor to automatically create the
interface members when you use an implements?

I am implementing an interface in my class, which has about 20 functions, 2
events, and 34 properties.

Thanks!!!
 
* "Brian Mitchell said:
What's the secret to getting the text editor to automatically create the
interface members when you use an implements?

I am implementing an interface in my class, which has about 20 functions, 2
events, and 34 properties.

You need VS.NET 2003.

"Tools" -> "Options..." -> "Text Editor" -> "Basic" -> "VB Specific" ->
[X] "Auto insert ...".
 
Thank you for the reply.

Yes, I have VS 2003 and the Automatic insertion of.... is checked in. When I
implement an interface from a third party .dll it automatically creates the
members, however if I define the interfaces myself (in my own class) it does
not. Is there something special you need in the interface definition to have
it automatically genetate?

Thanks!!



Herfried K. Wagner said:
* "Brian Mitchell said:
What's the secret to getting the text editor to automatically create the
interface members when you use an implements?

I am implementing an interface in my class, which has about 20 functions, 2
events, and 34 properties.

You need VS.NET 2003.

"Tools" -> "Options..." -> "Text Editor" -> "Basic" -> "VB Specific" ->
[X] "Auto insert ...".
 
* "Brian Mitchell said:
Yes, I have VS 2003 and the Automatic insertion of.... is checked in. When I
implement an interface from a third party .dll it automatically creates the
members, however if I define the interfaces myself (in my own class) it does
not. Is there something special you need in the interface definition to have
it automatically genetate?

There is not something special. After typing 'Implements <name of
interface>' and pressing return, the code is inserted automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top