private void btnFlats_Click(object sender, EventArgs e) { this.Hide(); FlatsForm flatFrom = new FlatsForm(); flatFrom.ShowDialog(); }