Declaring COM classes

sethindeed

Well-known member
Joined
Dec 31, 1969
Messages
118
Location
Montreal Canada
Hey its me again ;)
I am trying to declare a class that acts as a maskededit control.
Here is what I have done so far :

Public Class MyMaskedEdit

Inherits MSMask.MaskEdClass

End Class

Doing so, I am unable to access most of the maskededit properties (Left.Top, BackColor ... ). When declaring classes for common controls, I am using the following inheritance structure :

Inherits System.Windows.Forms.TextBox

...but I just cant find the maskededit control in the forms collection. Anybody has experienced the same kind of problems before ?

thx
 
The Masked Edit control is not a .NET component. You cant inherit from it.
 
OK then is there a way to build an array of masked edit controls that I will be able to load dynamically on one of my forms ( because control arrays are gone for good ) ?
Are you sure I cant build a class for masked edit controls or any added COM ressources ?
And are you sure an added COM cant inherits from something else than Windows.Forms ?
I have some difficulties to understand this limitation....
 
Back
Top