F
Flip
I've seen one way of opening up another form in a C#/WinForms app and I had
done it another way and I would like to know what the gurus think is the
correct/better way?
I've seen one way, where the parent class/form instantiates the child form,
and still in the parent form, sets properties on the child form by calling
methods/properties on the child before before running a childForm.Show().
The way I had done it was to have a constructor in the child form that took
any/all properties/variables that I wanted to be set, then all I had to do
was instantiate the child form from the parent form and run a
childForm.Show().
What is the prefered way people do this kind of stuff in the real world?
Thanks.
done it another way and I would like to know what the gurus think is the
correct/better way?
I've seen one way, where the parent class/form instantiates the child form,
and still in the parent form, sets properties on the child form by calling
methods/properties on the child before before running a childForm.Show().
The way I had done it was to have a constructor in the child form that took
any/all properties/variables that I wanted to be set, then all I had to do
was instantiate the child form from the parent form and run a
childForm.Show().
What is the prefered way people do this kind of stuff in the real world?
Thanks.