//closes the application private void btnClose_Click(object sender, EventArgs e) { TitleBar.Close(); }