private void AdminHome_Click(object sender, EventArgs e) { AdminProfile Profiles = new AdminProfile(); Profiles.Show(); Hide(); }
private void AdminHome_Click(object sender, EventArgs e) { AdminProfile Profiles = new AdminProfile(); Profiles.Show(); Hide(); if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); pictureBox1.Image = null; } }
//traverse to adminprofile private void ProfileButton_Click(object sender, EventArgs e) { AdminProfile profile = new AdminProfile(); profile.Show(); Hide(); if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); pictureBox1.Image = null; } }