when ever you inherit a class, if you add your own constructor, first thing you should make sure you do... invoke the base class's constructor...
-tgCode:Public Class Class1 Inherits System.Windows.Forms.Panel Public Sub New() MyBase.New() ' ... now add your code after this End Sub End Class




Reply With Quote