M
Mike
Folks, I think this is a simple yes or no answer.
I see .NET creates XXXXX.Designer.VB partial classes for main code
class and component classes.
My question is can I edit them?
In these classes, it has this note for the last private method
InitializeComponent():
'NOTE: The following procedure is required by the Windows Form
Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Private Sub InitializeComponent()
But at the top of the class, for the other functions, in particular
like New(), there is no note.
Does this mean I can safely add/edit this file as long I leave the
InitializeComponent method alone?
I ask because when you create a component, I want to add more
constructor initialization so I when add a New constructor to the
class the compiler does not like it because its already defined in the
partial class.
I don't want to lost work by editing a file you not suppose to.
Thanks
--
I see .NET creates XXXXX.Designer.VB partial classes for main code
class and component classes.
My question is can I edit them?
In these classes, it has this note for the last private method
InitializeComponent():
'NOTE: The following procedure is required by the Windows Form
Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Private Sub InitializeComponent()
But at the top of the class, for the other functions, in particular
like New(), there is no note.
Does this mean I can safely add/edit this file as long I leave the
InitializeComponent method alone?
I ask because when you create a component, I want to add more
constructor initialization so I when add a New constructor to the
class the compiler does not like it because its already defined in the
partial class.
I don't want to lost work by editing a file you not suppose to.
Thanks
--