473,623 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to implements interface

Hi,

How can I use different way to implements a interface that is already
implemented by it's base class?

Thanks ....sunny
Nov 20 '05 #1
3 947
using VB.NET

example:

Public Class ParticipantRadi oButton
Inherits System.Web.UI.H tmlControls.Htm lInputRadioButt on
Implements IPostBackDataHa ndler
I always receive error!!

Thanks Sunny.

"sunny" <jk*******@hotm ail.com> wrote in m
essage news:uA******** *****@TK2MSFTNG P12.phx.gbl...
Hi,

How can I use different way to implements a interface that is already
implemented by it's base class?

Thanks ....sunny

Nov 20 '05 #2
How can I use different way to implements a interface that is already
implemented by it's base class?


In current versions of VB.NET you can't, unless the interface
implementation methods are Overridable.

In VB.NET 8.0/2005/Whidbey, you'll be able to re-implement an
interface.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #3
Thanks a lot. you really save my time.

"Mattias Sjögren" <ma************ ********@mvps.o rg> wrote in message
news:uc******** ******@tk2msftn gp13.phx.gbl...
How can I use different way to implements a interface that is already
implemented by it's base class?


In current versions of VB.NET you can't, unless the interface
implementation methods are Overridable.

In VB.NET 8.0/2005/Whidbey, you'll be able to re-implement an
interface.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3401
by: Jeff Molby | last post by:
Ok, I've googled long and hard, but I can't find anything relevant on this one. I am now at the mercy of your good nature. <g> I have 3 projects in my solution: One app and 2 libraries. I am basically attempting to create a "plug-in" feature for my app. Namespace A contains the plug-in interface Namespace B is a sample implementation of that interface. The application needs to be able to load the implementation in Namespace B
2
3441
by: Todd Brooks | last post by:
I have a coclass that implements a dual interface. The thing that's a little unusual is that the coclass doesn't inherit directly from the interface, rather it inherits from an implementation class that inherits from the interface. This means that by default the attribute code generator doesn't pick up the interface. According to the docs, I should be able to use the implements() attribute to tell the compiler that the coclass implements...
5
16977
by: Joe Rattz | last post by:
Ok, I am trying to figure out how to tell if a class (not object) implements a particular interface. Using the "is" operator does not seem to work for me and I assume its because I have a class, not an object I am wanting to check. Here's my scenario. I am dynamically loading assemblies (dlls) at runtime. I am getting the list of types from each assembly, and if that type implements a particular interface, then and only then do I want...
6
1113
by: Klaus Löffelmann | last post by:
Hello, why is it necessary to implement every procedure of an interface by assigning it manually with another "implements" to the corresponding procedure of the class, which actually implements the interface. Isn't the name of the procedure good enough for assigning it unambiguously? I mean, it's enough with simply deriving one class from another one?
0
1313
by: ns2k | last post by:
I tried to implements Microsoft.Office.Core.Range Interface, but the dot net raise errors : + ' '_Default' cannot implement '_Default' because there is no matching property on interface 'Range'.' + ' 'Item' cannot implement 'Item' because there is no matching property on interface 'Range'.' + ' 'Value' cannot implement 'Value' because there is no matching property on interface 'Range'.' see my declarations in the class below :
3
1365
by: topdawg147 | last post by:
Is there any way to retrieve a list of objects that implement an interface. For example, suppose we have the following: Public Interface ISomething Function SomeFunction() As String End Interface Public Class Foo1 Implements ISomething ...
5
5825
by: owais | last post by:
Hi, I have a problem, I want to implements Parent class interface methods in child class. for e.g -------------- Test1.vb ---------------- Imports System Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Globalization
7
5366
by: Chris Lane | last post by:
Hi, I have the following class declaration and the ide is giving the following errors. Interface 'System.Web.UI.IPostBackDataHandler' is already implemented by base class 'System.Web.UI.HtmlControls.HtmlInputRadioButton'. 'System.Web.UI.IPostBackDataHandler.LoadPostData' is already implemented by base class 'System.Web.UI.HtmlControls.HtmlInputRadioButton' and cannot be
4
1085
by: Gazarsgo | last post by:
Came across this today using .NET Framework 1.1 Version 1.1.4322: VB.Net code: Public Interface IFace1 Property Foo End Interface Public Interface IFace2 Inherits IFace1
3
1604
balabaster
by: balabaster | last post by:
Hey, I've been trawling documentation for this, but can't figure out what it's called so I'm running short of answers: In VB say you build some interface: Interface IDemoInterface Sub MyFirstMethod(ByVal Param1 As String) Sub MySecondMethod(ByVal Param1 As String) Sub MyThirdMethod(ByVal Param1 As Integer) End Interface
0
8227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8165
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8670
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7150
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6106
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4074
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4164
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1778
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.