You can overload New for a form by adding another method named 'New' with
different parameters than the original:
--Code starts--
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
Public Sub New(ByVal strMessage As String)
Me.New()
' Add any additional code here
End Sub
--Code Ends--
You should only use the Overloads keyword if you are overloading an
inherited method.
Remember to make sure your new 'New' method calls MyBase.New and
InitializeComponent otherwise the form will not load correctly.
Hope this helps.
"jamie" <an*******@discussions.microsoft.com> wrote in message
news:ce****************************@phx.gbl...
Why can I not overload new() for a form?
Maybe I am trying to do it wrong.?
jamie