B
BobRoyAce
Let's say that I have a form, called Form1. It could have three files
associated with it, which I have listed below together with my
understanding of what "should" be in each:
Form1.vb -- should contain any custom code I've written for the
form
Form1.Designer.vb -- should contain all windows form designer
generated code
Form1.resx -- should contain any resources associated with the
form
I have two questions.
First, why do I sometimes end up without the Form1.Designer.vb file,
where all windows form designer generated code is put into the
Form1.vb file?
Second, why, in cases where I do have the Form1.Designer.vb file, does
a bunch of windows form designer generated code get put into the
Form1.vb file anyway? These would be lines like:
Friend WithEvents spinedNumberOfLocations As
DevExpress.XtraEditors.SpinEdit
I really would like to keep the Designer code in the *.Designer.vb
files always and would like to understand why this is happening.
associated with it, which I have listed below together with my
understanding of what "should" be in each:
Form1.vb -- should contain any custom code I've written for the
form
Form1.Designer.vb -- should contain all windows form designer
generated code
Form1.resx -- should contain any resources associated with the
form
I have two questions.
First, why do I sometimes end up without the Form1.Designer.vb file,
where all windows form designer generated code is put into the
Form1.vb file?
Second, why, in cases where I do have the Form1.Designer.vb file, does
a bunch of windows form designer generated code get put into the
Form1.vb file anyway? These would be lines like:
Friend WithEvents spinedNumberOfLocations As
DevExpress.XtraEditors.SpinEdit
I really would like to keep the Designer code in the *.Designer.vb
files always and would like to understand why this is happening.