Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax question on interfaces
Message
From
19/01/2004 00:14:34
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Syntax question on interfaces
Miscellaneous
Thread ID:
00868001
Message ID:
00868001
Views:
68
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
Next
Reply
Map
View

Click here to load this message in the networking platform