implementing interfaces 
Author Message
 implementing interfaces

Hello,
in C# to implement and interface, you can right click on the on the
interface in Class View and click Add and then on Implement Interface and
the IDE with create stubs for all of the members of the interface for you.
Does VB.NET has a way to do the same thing? It would seem odd for C# to make
something easier than VB.NET but I guess it's possible. I've searched
through the IDE and don't see anything.

Any help is much appreciated

Steve



Sat, 13 Aug 2005 07:57:20 GMT  
 implementing interfaces
Hello Steve!


Quote:
> in C# to implement and interface, you can right click on the on the
> interface in Class View and click Add and then on Implement Interface
and
> the IDE with create stubs for all of the members of the interface for
you.
> Does VB.NET has a way to do the same thing? It would seem odd for C#
to make
> something easier than VB.NET but I guess it's possible. I've searched
> through the IDE and don't see anything.

I have heard that this feature will be included in Visual Studio .NET
2003.

Regards,
Herfried K. Wagner



Sat, 13 Aug 2005 08:07:11 GMT  
 implementing interfaces
Yeah, C# and C++ have wizards for adding class, methods, even fields. No
such features for VB programmers. This is strange considering that VB5/6
were quite big on wizards. I hope we do indeed get them in VS.NET 2003.

--
Daniel Okely
dbokely at yahoo.com.au


Quote:
> Hello,
> in C# to implement and interface, you can right click on the on the
> interface in Class View and click Add and then on Implement Interface and
> the IDE with create stubs for all of the members of the interface for you.
> Does VB.NET has a way to do the same thing? It would seem odd for C# to
make
> something easier than VB.NET but I guess it's possible. I've searched
> through the IDE and don't see anything.

> Any help is much appreciated

> Steve



Sat, 13 Aug 2005 11:31:07 GMT  
 implementing interfaces

After you type the "Implements WhateverInterface" within a class
declaration, VB.NET allows you to create the prototype for the Interface
methods.

With your cursor within the body of the class, click on the "Class Name"
combobox at the top-left of the code window and select the Interface
(indented under the class node) from the drop down; in the "Method Name"
combobox to the top-right of the code window, select the interface method
and the method prototype is created in the body of the class.

---
Taiwo


Quote:
> Hello,
> in C# to implement and interface, you can right click on the on the
> interface in Class View and click Add and then on Implement Interface and
> the IDE with create stubs for all of the members of the interface for you.
> Does VB.NET has a way to do the same thing? It would seem odd for C# to
make
> something easier than VB.NET but I guess it's possible. I've searched
> through the IDE and don't see anything.

> Any help is much appreciated

> Steve



Sat, 13 Aug 2005 11:53:31 GMT  
 implementing interfaces


Quote:
> Hello,
> in C# to implement and interface, you can right click on the on the
> interface in Class View and click Add and then on Implement Interface
> and the IDE with create stubs for all of the members of the interface
> for you. Does VB.NET has a way to do the same thing? It would seem odd
> for C# to make something easier than VB.NET but I guess it's possible.
> I've searched through the IDE and don't see anything.

> Any help is much appreciated

> Steve

In VB.Net 2003 (Everett), When you type Implements Interfacename and press
enter, all the stubs are created automatically.  Too bad this doesn't exist
in VB.Net 2002.

Chris

--
If you don't like lunchmeat, please remove it from my e-mail address to
send me an e-mail



Sun, 14 Aug 2005 02:13:09 GMT  
 implementing interfaces
Well this does work. I don't know why I didn't think about this approach. At
least it's better than typing them all in by hand.

Thanks

Steve


Quote:

> After you type the "Implements WhateverInterface" within a class
> declaration, VB.NET allows you to create the prototype for the Interface
> methods.

> With your cursor within the body of the class, click on the "Class Name"
> combobox at the top-left of the code window and select the Interface
> (indented under the class node) from the drop down; in the "Method Name"
> combobox to the top-right of the code window, select the interface method
> and the method prototype is created in the body of the class.

> ---
> Taiwo



> > Hello,
> > in C# to implement and interface, you can right click on the on the
> > interface in Class View and click Add and then on Implement Interface
and
> > the IDE with create stubs for all of the members of the interface for
you.
> > Does VB.NET has a way to do the same thing? It would seem odd for C# to
> make
> > something easier than VB.NET but I guess it's possible. I've searched
> > through the IDE and don't see anything.

> > Any help is much appreciated

> > Steve



Sun, 14 Aug 2005 02:50:03 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Implementing interfaces

2. Cannot implement Interface

3. Implemented Interface Method Auto Insertion?

4. Problem with implementing Interface functions

5. Implement Interfaces on dynamically created controls?

6. Re-implement interface

7. Implement interface in VB.Net

8. Implementing Interface Events...

9. Registering and implementing Interfaces

10. Implemented Interfaces...

11. RaiseEvent through Implemented Interface

12. Problem implementing interface

 

 
Powered by phpBB® Forum Software