Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax question on interfaces
Message
De
19/01/2004 00:14:34
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Syntax question on interfaces
Divers
Thread ID:
00868001
Message ID:
00868001
Vues:
67
At least I think this is just a syntax question...

I'm subclassing all the Winforms controls, and want to add 3 properties to each control. I read that defining an interface was the best way to do it.

So I created a simple interface with three properties...the name of the interface is IbindingInfo.

When I go to my first subclassed control (a textbox), the current class syntax is...

public class MyTextBox : System.Windows.Forms.TextBox

My question is...how specifically do I set up the reference to the interface? All the sample code I've seen for interfaces are for non-visual classes.

Everything I try (adding another colon and the name of the interface, adding a comma and then the name, etc.) generates compiler errors.

Any ideas? Thanks,

Kevin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform