I have read that this.Close(); does not only closes the form but cleans
up the variable in memory also. So I have put the line when the user closes the
main form. But what about other forms. F.e I have a second form called Settings.
That can be called by mainmenu-item Settings it will then execute the following code:
private void mmSettings_Click(object sender, EventArgs e)
and it has a close-button:
private void btnOK_Click(object sender, EventArgs e)
this.DialogResult = DialogResult.OK;
But doesn't this close the settingsform and not clean up the form in memory?
How can I close the form and clean up the form in memory?
And is the keyword 'Dispose' for cleaning up objects?