lundi 30 mars 2015

Will .NET framework release object earlier than the user close the form

Is it ok to create and show forms like this?



private void settingsButton_Click(object sender, EventArgs e)
{
var settingsForm = new SettingsForm();
settingsForm.Show();
}


Won't .NET framework release this object earlier than the user close the form?


Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire