K
Karl Rhodes
I have an application which uses mutliple forms for different tasks,
all of which are mdi child forms to the applications MDI Parent form.
One of these child forms (form1) will be used to select a record from
somewhere within a hierarchy (using a treeview and listbox to narrow
down the search) and then the details from this record should be
displayed on an entirely different child form (form2) by the click of
a button.
What I want to know is how do I get this click of the button to open a
new form, passing over the ID value of the record selected?
I'm sure it has something to do with constructors, but as I've never
done it, I don't know how.
Any sample code for the form2's constructor, and how to open and pass
this value to form2 will be greatly appreciated.
all of which are mdi child forms to the applications MDI Parent form.
One of these child forms (form1) will be used to select a record from
somewhere within a hierarchy (using a treeview and listbox to narrow
down the search) and then the details from this record should be
displayed on an entirely different child form (form2) by the click of
a button.
What I want to know is how do I get this click of the button to open a
new form, passing over the ID value of the record selected?
I'm sure it has something to do with constructors, but as I've never
done it, I don't know how.
Any sample code for the form2's constructor, and how to open and pass
this value to form2 will be greatly appreciated.