You haven't told us what version of VS this is. VS 2005 shows me the error message (or rather inserts the boilerplate override automatically).
I do not have access to VS 2008 right here, but I'm guessing this behaviour might have something to do with the default instance of the Form class created behind the scenes. Just guessing. On Jun 18, 11:44 pm, Drakemar <[email protected]> wrote: > I have an abstract class with a single property, as defined below: > > Public MustInherit Class MyClass > Public MustOverride Property MyProperty() As String > End Class > > If inherit from this class, Visual Studio correctly informs me that I > must override MyProperty. > > However, if I change the return type of MyProperty to Form, visual > studio does not enforce the MustOverride property. > Public MustOverride Property MyProperty() As Form > > Anyone know why? More importantly, how can I enforce an Form as > return type for a property? > > Thanks, > Mark
