> If you add a Load event for your form, it will automatically put a call to
> InitializeComponent() in the load
There is no InitializeComponent() call in the generated event handler.
> You could also do it in a constructor for your form.
Yes, this is what I want, but there is no automatically generated
constructor.

Signature
Best regards,
Oleg Subachev
RobinS - 24 Apr 2007 07:41 GMT
Sorry, my bad, not the Form_Load event. If you add a default constructor to
your form, it will add the InitializeComponent to it for you.
Try this: type in
Public Sub New()
and hit return. It should fill it in like this:
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Robin S.
--------------------------------
>> If you add a Load event for your form, it will automatically put a call
>> to InitializeComponent() in the load
[quoted text clipped - 5 lines]
> Yes, this is what I want, but there is no automatically generated
> constructor.