G
Guest
In VS 2003, if I overloaded the New() method of a WindowsForm, I always
included a call to Mybase.New(), the same way this method was called in the
native New() method.
In VS 2005, the New() method in WindowsForms are not visible in the .vb or
Designer.vb files. If you add a New() method to the .vb file of the
WindowsForm, a formatted Sub is created for you, however, it is missing the
call to Mybase.New().
If I create WindowsForms that require an overloaded New(), should I add the
call to Mybase.New()? It seems logical that if you create a new WindowsForm
that Inherits System.Windows.Forms.Form, you should call the constructor of
its base class.
included a call to Mybase.New(), the same way this method was called in the
native New() method.
In VS 2005, the New() method in WindowsForms are not visible in the .vb or
Designer.vb files. If you add a New() method to the .vb file of the
WindowsForm, a formatted Sub is created for you, however, it is missing the
call to Mybase.New().
If I create WindowsForms that require an overloaded New(), should I add the
call to Mybase.New()? It seems logical that if you create a new WindowsForm
that Inherits System.Windows.Forms.Form, you should call the constructor of
its base class.