PC Review


Reply
Thread Tools Rate Thread

Auto-creation of Interface members

 
 
Brian Mitchell
Guest
Posts: n/a
 
      17th May 2004
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!!!


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      17th May 2004
* "Brian Mitchell" <(E-Mail Removed)> scripsit:
> 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 ...".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Brian Mitchell
Guest
Posts: n/a
 
      17th May 2004
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 [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> * "Brian Mitchell" <(E-Mail Removed)> scripsit:
> > 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 ...".
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      18th May 2004
* "Brian Mitchell" <(E-Mail Removed)> scripsit:
> 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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface members auto completion in Vs2008 express Siamak Sarmady Microsoft C# .NET 0 24th Jan 2008 04:37 AM
Overriding interface members Sebastian Microsoft C# .NET 10 5th Jul 2007 12:30 PM
protected interface members Steven Livingstone Microsoft C# .NET 8 25th Jan 2006 12:35 PM
Interface Members Serialization cisco Microsoft Dot NET Framework 0 10th Nov 2003 08:24 PM
Creation Of NEW Class Members That Are Classes Tappy Tibbons Microsoft VB .NET 6 11th Sep 2003 04:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:51 PM.