D
djc
if a form is a class and you can have multiple instances of a class can you
have multiple instances of a form?
Let say I want to write a class that does a particular thing... like open a
form and fill a listbox on it. However, from within that form a user can
double click on an item in the listbox to launch another form with a listbox
containing 'sub-items' from the 'parent' form... from that form the cycle
could continue indefinitely.
Basically I want to write an app to track/organize tasks. Tasks could have
sub-tasks.. and those sub-tasks could have sub-tasks.. etc.. I don't want to
put a limit on how many levels deep you could go.
Can I write a class that does this? I obviously can't create an endless
number of forms ahead of time. And the form is the same for each sub-level
of tasks that would be opened.. only the source of the listbox and some
labels would change with each succesive form open.
Or should I just use one form and change the source each time so there is
only one form showing at any one time? These are still just ideas right
now.. I'm looking for some input before I implement.
Thanks in advance for any thoughts
have multiple instances of a form?
Let say I want to write a class that does a particular thing... like open a
form and fill a listbox on it. However, from within that form a user can
double click on an item in the listbox to launch another form with a listbox
containing 'sub-items' from the 'parent' form... from that form the cycle
could continue indefinitely.
Basically I want to write an app to track/organize tasks. Tasks could have
sub-tasks.. and those sub-tasks could have sub-tasks.. etc.. I don't want to
put a limit on how many levels deep you could go.
Can I write a class that does this? I obviously can't create an endless
number of forms ahead of time. And the form is the same for each sub-level
of tasks that would be opened.. only the source of the listbox and some
labels would change with each succesive form open.
Or should I just use one form and change the source each time so there is
only one form showing at any one time? These are still just ideas right
now.. I'm looking for some input before I implement.
Thanks in advance for any thoughts