The MSDN library contains a lot of information on those properties and
methods. Here is a quick synopsis:
- Form.Owner is a form that 'owns' this form. When the owner is minimized
or restored, so is this form.
- Form.Parent comes from the fact that a Form is also a control. Every
control can have one parent which is the control with this control inside
it. Usually for a form, this is null.
- Form.ShowDialog() displays the form as a dialog, which means it is stays
on top of the program and code execution stops on the line till the form's
DialogResult property is set (and then is returned).
- Form.Show() simply displays the form normally.
- Form.Activated() brings the form to the top of the screen and gives the
form focus.
Best way to learn more about these is to try them out. Hope this helps.
Cheers,
-Noah Coad
Microsoft MCP & MVP
"fh1996" <fh****@yahoo.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Form.Owner and Form.Parent, what's the difference between them?
Form.ShowDialog() and Form.Show(), when to use which?
Form.Activated(), what does it mean when saying a Form is "activated"?
Thanks!