A
Academia
I believe that with VS2005 if I don't include sub New it is somehow added
but not visible.
But if I need a New with arguments or if I have to insert code into New I
can write my own.
Should it be put into the .designer.vb or into the .vb file?
If you recommend putting it into the .vb file should it be:
Public Sub New()
MyBase.New()
InitializeComponent()
'my code here
End Sub
or can I call the one that was somehow added?
Public Sub New()
CallDefaultNew() 'somehow
'my code here
End Sub
Guess I'm trying to divorce my code from the .designer.vb code which could
change some day. (Suppose they decide to call InitializeComponent something
else.)
but not visible.
But if I need a New with arguments or if I have to insert code into New I
can write my own.
Should it be put into the .designer.vb or into the .vb file?
If you recommend putting it into the .vb file should it be:
Public Sub New()
MyBase.New()
InitializeComponent()
'my code here
End Sub
or can I call the one that was somehow added?
Public Sub New()
CallDefaultNew() 'somehow
'my code here
End Sub
Guess I'm trying to divorce my code from the .designer.vb code which could
change some day. (Suppose they decide to call InitializeComponent something
else.)