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...

Code:
Public Class Class1
    Inherits System.Windows.Forms.Panel
 
    Public Sub New()
         MyBase.New()
         ' ... now add your code after this
    End Sub
 
End Class
-tg