M
MM
Hi, First off, I'm just beginning .NET and GUI stuff and am very
inexperienced. I have worked through a number of GUI tuts in books but
all the GUI code to handle events for all the controls in these examples
is always in the single file of the main form. What is the correct way
to 'sub-divide' various GUI sections into differnet files? For instance,
with all my anticipated controls, this one file would be hundreds if not
thousands of lines long. My 'data' naturally sub-divides into a number
of 'sections' but I don't know how to seperate them into a number of files.
For example, I want to have a Data/GUI class that contains a grid (using
a Listview that is initially empty), a button to create a new row, a
button alongside each row to change order, etc and these are all
associated with an ArrayList of data (initially empty also). So, in my
reckoning I want to create a class that contains the data class and all
the GUI elements.
Questions:
If you create this class, how do you add the gui stuff to the main form,
how do you set position of the control in the main form, etc (and more
questions x infinity-1).
Any hints, URLs with some meaty examples, jokes (to relieve stress), etc
would be greatly appreciated. Thanks for any and all help. matthew.
inexperienced. I have worked through a number of GUI tuts in books but
all the GUI code to handle events for all the controls in these examples
is always in the single file of the main form. What is the correct way
to 'sub-divide' various GUI sections into differnet files? For instance,
with all my anticipated controls, this one file would be hundreds if not
thousands of lines long. My 'data' naturally sub-divides into a number
of 'sections' but I don't know how to seperate them into a number of files.
For example, I want to have a Data/GUI class that contains a grid (using
a Listview that is initially empty), a button to create a new row, a
button alongside each row to change order, etc and these are all
associated with an ArrayList of data (initially empty also). So, in my
reckoning I want to create a class that contains the data class and all
the GUI elements.
Questions:
If you create this class, how do you add the gui stuff to the main form,
how do you set position of the control in the main form, etc (and more
questions x infinity-1).
Any hints, URLs with some meaty examples, jokes (to relieve stress), etc
would be greatly appreciated. Thanks for any and all help. matthew.