private void buttonViewInbox_Click(object sender, EventArgs e) { //this shows the frmViewInbox form frmViewInbox NewViewInbox = new frmViewInbox(); NewViewInbox.Show(); this.Close(); }