This is a tough one. I know how to use and implement interfaces from my own classes, but how do I take a system.windows.forms.textbox and get it to implement an interface that I designed. I really don't want to have to inherit a textbox into a usercontrol and then do it from there... isn't there a more direct means to do it I have tried creating an empty class file and making it look like the following...
===================================
Imports System.Windows.Forms
Public Class MyCustomTextBox
Inherits ...
Implements MyOwnInterface
End Class
==================================
and this is where it bombs... when I get the intellisense listing after I type the word Inherits, it doesn't even show System.Windows.Forms as an available choice in the list. It's a very limited subset of the framework. So does anyone know how I can take an existing windows control and get it to use MY INTERFACE
Thanks a lot, and I wish I could reward the winning answer with $2,000,000 dollars, but a simple "You are Godlike" will have to do.

How do I get a .NET TextBox to implement MY OWN INTERFACE
natashanatasha
Yeah, you C# folk must have something referenced that is missing in VB.NET or something. Does anyone have a VB.NET example Thats what I am in.
raokramer
public class MyTextBox: System.Windows.Forms.TextBox, IMyInterface {
}
The above code in C# is equivalent to following code in VB.Net
Public Class MyTextBox
Inherits System.Windows.Forms.TextBox
Implements ImyInterface
End
ClassI like working on both languages :))
BrianRD
Thanks guys.
Marcos Torres
public
class Class1 : TextBox, IMyInterface{
}
kryali
See answer below
bls
Try turning that off...
Pierre Berkaloff
public class MyTextBox: System.Windows.Forms.TextBox, IComparer {
}
Santos Ray Victorero, II
See what happens when the obvious is examined... solutions are found.